Remove debug msg.

This commit is contained in:
Ting-Kuan 2014-04-16 02:31:18 -04:00
parent 52a73ceae3
commit c53eb562a3
7 changed files with 0 additions and 13 deletions

View file

@ -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 []

View file

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

View file

@ -32,7 +32,6 @@ module.exports = class ThangComponentEditView extends CocoView
onComponentsSync: (res) ->
return if @destroyed
@supermodel.addCollection @componentCollection
@hideLoading()
buildExtantComponentTreema: ->
level = new Level()

View file

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

View file

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

View file

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

View file

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