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:
Scott Erickson 2016-07-13 13:46:03 -07:00
parent f88223b994
commit 45c8c2006d

View file

@ -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'