mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Quick fix LevelSessions require error
In areas of the site that do not have lib/aether_utils, the require broke because it's fetched only sometimes through the ModuleLoader.
This commit is contained in:
parent
f88223b994
commit
45c8c2006d
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
CocoModel = require './CocoModel'
|
||||
{createAetherOptions} = require 'lib/aether_utils'
|
||||
|
||||
module.exports = class LevelSession extends CocoModel
|
||||
@className: 'LevelSession'
|
||||
|
@ -96,6 +95,7 @@ module.exports = class LevelSession extends CocoModel
|
|||
@set 'state', state
|
||||
|
||||
generateSpellsObject: ->
|
||||
{createAetherOptions} = require 'lib/aether_utils'
|
||||
aetherOptions = createAetherOptions functionName: 'plan', codeLanguage: @get('codeLanguage')
|
||||
spellThang = aether: new Aether aetherOptions
|
||||
spells = "hero-placeholder/plan": thangs: {'Hero Placeholder': spellThang}, name: 'plan'
|
||||
|
|
Loading…
Reference in a new issue