mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Logging some stuff to get to the bottom of things.
This commit is contained in:
parent
bb8d1d8362
commit
399cd048fc
2 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,8 @@ class CocoModel extends Backbone.Model
|
|||
TreemaNode.utils.populateDefaults(clone, @schema(), thisTV4)
|
||||
@attributesWithDefaults = clone
|
||||
duration = new Date() - t0
|
||||
console.debug "Populated defaults for #{@attributes.name or @type()} in #{duration}ms" if duration > 10
|
||||
console.debug "Populated defaults for #{@type()}#{if @attributes.name then ' ' + @attributes.name else ''} in #{duration}ms"# if duration > 10
|
||||
console.trace?()
|
||||
|
||||
loadFromBackup: ->
|
||||
return unless @saveBackups
|
||||
|
@ -109,7 +110,7 @@ class CocoModel extends Backbone.Model
|
|||
console.debug "Validation failed for #{@constructor.className}: '#{@get('name') or @}'."
|
||||
for error in errors
|
||||
console.debug "\t", error.dataPath, ':', error.message
|
||||
console.trace()
|
||||
console.trace?()
|
||||
return errors
|
||||
|
||||
save: (attrs, options) ->
|
||||
|
|
|
@ -221,6 +221,7 @@ module.exports = class WorldMapView extends RootView
|
|||
storage.save("loaded-menu-music-#{@terrain}", true) unless @probablyCachedMusic
|
||||
|
||||
preloadTopHeroes: ->
|
||||
return # Testing to see if this is causing the weird problem with ThangTypes overwriting me
|
||||
for heroID in ['captain', 'knight']
|
||||
url = "/db/thang.type/#{ThangType.heroes[heroID]}/version"
|
||||
continue if @supermodel.getModel url
|
||||
|
|
Loading…
Reference in a new issue