mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Fixed #1262.
This commit is contained in:
parent
3f6c9c4f02
commit
b918f5adfb
3 changed files with 35 additions and 79 deletions
|
@ -139,7 +139,7 @@ module.exports = class Level extends CocoModel
|
|||
for component in thang.components or []
|
||||
continue unless lc = _.find levelComponents, {original: component.original}
|
||||
component.config ?= {}
|
||||
TreemaNode.utils.populateDefaults(component.config, lc.configSchema)
|
||||
TreemaUtils.populateDefaults(component.config, lc.configSchema)
|
||||
@lastType = 'component'
|
||||
@lastOriginal = component.original
|
||||
@walkDefaults component.config, lc.configSchema.properties
|
||||
|
@ -147,7 +147,7 @@ module.exports = class Level extends CocoModel
|
|||
fillInDefaultSystemConfiguration: (levelSystems) ->
|
||||
for system in levelSystems ? []
|
||||
system.config ?= {}
|
||||
TreemaNode.utils.populateDefaults(system.config, system.model.configSchema)
|
||||
TreemaUtils.populateDefaults(system.config, system.model.configSchema)
|
||||
@lastType = 'system'
|
||||
@lastOriginal = system.model.name
|
||||
@walkDefaults system.config, system.model.configSchema.properties
|
||||
|
|
|
@ -42,6 +42,7 @@ Worker::removeEventListener = (what) ->
|
|||
if what is 'message'
|
||||
@onmessage = -> #This webworker api has only one event listener at a time.
|
||||
GLOBAL.tv4 = require('tv4').tv4
|
||||
GLOBAL.TreemaUtils = require './bower_components/treema/treema-utils.js'
|
||||
GLOBAL.marked = setOptions: ->
|
||||
store = {}
|
||||
GLOBAL.localStorage =
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue