mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 00:58:00 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
638d509672
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ class CocoModel extends Backbone.Model
|
|||
save: (attrs, options) ->
|
||||
options ?= {}
|
||||
options.headers ?= {}
|
||||
options.headers['X-Current-Path'] = document.location.pathname
|
||||
options.headers['X-Current-Path'] = document.location?.pathname ? 'unknown'
|
||||
success = options.success
|
||||
error = options.error
|
||||
options.success = (model, res) =>
|
||||
|
|
|
@ -103,7 +103,7 @@ module.exports = class SpellListEntryView extends CocoView
|
|||
return if @thangsView
|
||||
spellThang = @getPrimarySpellThang()
|
||||
return unless spellThang
|
||||
@thangsView = new SpellListEntryThangsView thangs: (spellThang.thang for thangID, spellThang of @spell.thangs), thang: spellTHang.thang, spell: @spell, supermodel: @supermodel
|
||||
@thangsView = new SpellListEntryThangsView thangs: (spellThang.thang for thangID, spellThang of @spell.thangs), thang: spellThang.thang, spell: @spell, supermodel: @supermodel
|
||||
@thangsView.render()
|
||||
@$el.append @thangsView.el
|
||||
@thangsView.$el.mouseenter (e) => @onMouseEnterAvatar()
|
||||
|
|
Loading…
Reference in a new issue