mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-31 07:12:49 -04:00
Merge branch 'master' into game-dev-levels
This commit is contained in:
commit
f5c9be4831
2 changed files with 6 additions and 1 deletions
app
|
@ -60,6 +60,11 @@ module.exports = ModuleLoader = class ModuleLoader extends CocoClass
|
|||
# load dependencies if it's not a vendor library
|
||||
if not _.string.startsWith(e.item.id, 'vendor')
|
||||
have = window.require.list()
|
||||
haveWithIndexRemoved = _(have)
|
||||
.filter (file) -> _.string.endsWith(file, 'index')
|
||||
.map (file) -> file.slice(0,-6)
|
||||
.value()
|
||||
have = have.concat(haveWithIndexRemoved)
|
||||
console.group('Dependencies', e.item.id) if LOG
|
||||
@recentLoadedBytes += e.rawResult.length
|
||||
dependencies = @parseDependencies(e.rawResult)
|
||||
|
|
|
@ -202,7 +202,7 @@ module.exports = class TomeView extends CocoView
|
|||
spell = @spellFor thang, spellName
|
||||
unless spell?.canRead()
|
||||
@clearSpellView()
|
||||
@updateSpellPalette thang, spell
|
||||
@updateSpellPalette thang, spell if spell
|
||||
return
|
||||
unless spell.view is @spellView
|
||||
@clearSpellView()
|
||||
|
|
Loading…
Add table
Reference in a new issue