codecombat/app/lib/SystemNameLoader.coffee
Ruben Vereecken fce9f0031b All edits are now tracked
intermediate

intermediate
2014-07-04 19:27:38 +02:00

10 lines
261 B
CoffeeScript

CocoClass = require './CocoClass'
namesCache = {}
class SystemNameLoader extends CocoClass
getName: (id) -> namesCache[id]?.name
setName: (system) -> namesCache[system.get('original')] = {name:system.get('name')}
module.exports = new SystemNameLoader()