Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-09-08 14:32:27 -07:00
commit 638d509672
2 changed files with 2 additions and 2 deletions

View file

@ -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) =>

View file

@ -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()