Merge branch 'master' of github.com:LightAndLight/codecombat

This commit is contained in:
Isaac 2014-02-11 04:33:12 +10:00
commit 23554315e2
2 changed files with 5 additions and 3 deletions

View file

@ -183,7 +183,9 @@ class Angel
@started = null @started = null
clearInterval @purgatoryTimer clearInterval @purgatoryTimer
@purgatoryTimer = null @purgatoryTimer = null
@worker?.terminate() if @worker
worker = @worker
_.defer -> worker.terminate
@worker = null @worker = null
@ @

View file

@ -89,7 +89,7 @@ module.exports = class TomeView extends View
spellKey = pathComponents.join '/' spellKey = pathComponents.join '/'
@thangSpells[thang.id].push spellKey @thangSpells[thang.id].push spellKey
unless method.cloneOf unless method.cloneOf
spell = @spells[spellKey] = new Spell programmableMethod: method, spellKey: spellKey, pathComponents: pathPrefixComponents.concat(pathComponents), session: @options.session, supermodel: @supermodel, skipFlow: @getQueryVariable("skip_flow") is "true", skipProtectAPI: @getQueryVariable("skip_protect_api") is "true" spell = @spells[spellKey] = new Spell programmableMethod: method, spellKey: spellKey, pathComponents: pathPrefixComponents.concat(pathComponents), session: @options.session, supermodel: @supermodel, skipFlow: @getQueryVariable("skip_flow") is "true", skipProtectAPI: true #@getQueryVariable("skip_protect_api") is "true"
for thangID, spellKeys of @thangSpells for thangID, spellKeys of @thangSpells
thang = world.getThangByID thangID thang = world.getThangByID thangID
if thang if thang