mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Remove debug msg.
This commit is contained in:
parent
52a73ceae3
commit
c53eb562a3
7 changed files with 0 additions and 13 deletions
|
@ -29,7 +29,6 @@ module.exports = class Level extends CocoModel
|
|||
visit = (system) ->
|
||||
return if system.original of originalsSeen
|
||||
systemModel = _.find systemModels, {original: system.original}
|
||||
console.debug 'gintau', 'Level-systemModel', system, systemModel, systemModels
|
||||
|
||||
console.error "Couldn't find model for original", system.original, "from", systemModels unless systemModel
|
||||
for d in systemModel.dependencies or []
|
||||
|
|
|
@ -164,7 +164,6 @@ module.exports = class SuperModel extends Backbone.Model
|
|||
@num += r.value
|
||||
@progress = @num / @denom
|
||||
|
||||
console.debug 'gintau', 'super-progress' , @progress, @num, @denom
|
||||
@trigger('superModel:updateProgress', @progress)
|
||||
@trigger('loaded-all') if @finished()
|
||||
|
||||
|
@ -233,11 +232,6 @@ class ModelResource extends Resource
|
|||
onLoadDependenciesSuccess: =>
|
||||
@model.fetch(@fetchOptions)
|
||||
|
||||
# Hack: some components seem cannot be downloaded,
|
||||
# so we need to complete fetching manually after a while if no error occurs.
|
||||
if @model.constructor.className is 'ComponentsCollection'
|
||||
setTimeout((=> @markLoaded() if @isLoading), 5000)
|
||||
|
||||
@listenToOnce(@model, 'sync', ->
|
||||
@markLoaded()
|
||||
@loadDeferred.resolve(@)
|
||||
|
|
|
@ -32,7 +32,6 @@ module.exports = class ThangComponentEditView extends CocoView
|
|||
onComponentsSync: (res) ->
|
||||
return if @destroyed
|
||||
@supermodel.addCollection @componentCollection
|
||||
@hideLoading()
|
||||
|
||||
buildExtantComponentTreema: ->
|
||||
level = new Level()
|
||||
|
|
|
@ -56,7 +56,6 @@ module.exports = class EditorLevelView extends View
|
|||
|
||||
@levelRes = @supermodel.addModelResource(@level, 'level')
|
||||
@listenToOnce(@levelRes, 'resource:loaded', ->
|
||||
console.debug 'gintau', 'init-world'
|
||||
@world = new World @level.name
|
||||
@worldRes.markLoaded()
|
||||
)
|
||||
|
|
|
@ -140,7 +140,6 @@ module.exports = class ThangsTabView extends View
|
|||
e.preventDefault()
|
||||
|
||||
onLevelLoaded: (e) ->
|
||||
console.debug 'gintau', 'thangs-tab-view', 'onLevelLoaded'
|
||||
@level = e.level
|
||||
|
||||
data = $.extend(true, {}, @level.attributes)
|
||||
|
|
|
@ -84,7 +84,6 @@ module.exports = class CocoView extends Backbone.View
|
|||
render: ->
|
||||
return @ unless me
|
||||
super()
|
||||
console.debug 'gintau', 'CocoView-Render', @
|
||||
return @template if _.isString(@template)
|
||||
@$el.html @template(@getRenderData())
|
||||
|
||||
|
@ -120,7 +119,6 @@ module.exports = class CocoView extends Backbone.View
|
|||
@$el?.find('.loading-screen .progress-bar').css('width', prog)
|
||||
|
||||
onLoaded: ->
|
||||
console.debug 'gintau', 'CocoView-onLoaded()', @
|
||||
@render?()
|
||||
|
||||
# Error handling for loading
|
||||
|
|
|
@ -64,7 +64,6 @@ module.exports = class LadderView extends RootView
|
|||
|
||||
afterRender: ->
|
||||
super()
|
||||
console.debug 'gintau', 'ladder_view_finished', @supermodel.finished()
|
||||
return unless @supermodel.finished()
|
||||
@insertSubView(@ladderTab = new LadderTabView({}, @level, @sessions))
|
||||
@insertSubView(@myMatchesTab = new MyMatchesTabView({}, @level, @sessions))
|
||||
|
|
Loading…
Reference in a new issue