remove debugging msg.

This commit is contained in:
Ting-Kuan 2014-04-19 13:09:50 -04:00
parent 7321052c18
commit 974e5e1b24
5 changed files with 10 additions and 10 deletions

View file

@ -243,7 +243,7 @@ module.exports = class LevelLoader extends CocoClass
@initWorld() if @allDone()
@trigger 'progress'
console.debug 'gintau', 'notify-notifyProgress', progress
# console.debug 'gintau', 'notify-notifyProgress', progress
if progress is 1
console.debug 'gintau', 'notify-loaded-all'
# console.debug 'gintau', 'notify-loaded-all'
@trigger 'loaded-all'

View file

@ -172,7 +172,7 @@ module.exports = class SuperModel extends Backbone.Model
@num += r.value
@progress = @num / @denom
console.debug 'gintau', 'supermodel-updateProgress', @progress, @num, @denom
# console.debug 'gintau', 'supermodel-updateProgress', @progress, @num, @denom
@trigger('superModel:updateProgress', @progress)
@trigger('loaded-all') if @finished()
@ -198,7 +198,7 @@ class Resource extends Backbone.Model
@dependencies.push(depRes)
markLoaded: ->
console.debug 'gintau', 'markLoaded', @
# console.debug 'gintau', 'markLoaded', @
@trigger('resource:loaded', @) if not @isLoaded
@isLoaded = true
@isLoading = false

View file

@ -87,7 +87,7 @@ module.exports = class EditorLevelView extends View
afterRender: ->
super()
return unless @world and @level
console.debug 'gintau', 'edit-afterRender'
# console.debug 'gintau', 'edit-afterRender'
@$el.find('a[data-toggle="tab"]').on 'shown.bs.tab', (e) =>
Backbone.Mediator.publish 'level:view-switched', e
@thangsTab = @insertSubView new ThangsTabView world: @world, supermodel: @supermodel

View file

@ -82,7 +82,7 @@ module.exports = class CocoView extends Backbone.View
# View Rendering
render: ->
console.debug 'gintau' , 'CocoView-Render', @
# console.debug 'gintau' , 'CocoView-Render', @
return @ unless me
super()
return @template if _.isString(@template)
@ -122,7 +122,7 @@ module.exports = class CocoView extends Backbone.View
# Error handling for loading
onResourceLoadFailed: (source) ->
console.debug 'gintau', 'onResourceLoadFailed', source
# console.debug 'gintau', 'onResourceLoadFailed', source
@$el.find('.loading-screen .errors').append(loadingErrorTemplate({
status: 'error',
name: source.resource.name
@ -181,14 +181,14 @@ module.exports = class CocoView extends Backbone.View
# Loading RootViews
showLoading: ($el=@$el) ->
#console.debug 'gintau', 'showLoading', $el
## console.debug 'gintau', 'showLoading', $el
$el.find('>').addClass('hidden')
$el.append loadingScreenTemplate()
@_lastLoading = $el
hideLoading: ->
return unless @_lastLoading?
#console.debug 'gintau', 'hideLoading', @$el
## console.debug 'gintau', 'hideLoading', @$el
@_lastLoading.find('.loading-screen').remove()
@_lastLoading.find('>').removeClass('hidden')
@_lastLoading = null

View file

@ -62,7 +62,7 @@ module.exports = class LadderView extends RootView
afterRender: ->
super()
console.debug 'gintau', 'ladder_view-afterRender', @supermodel.finished()
# console.debug 'gintau', 'ladder_view-afterRender', @supermodel.finished()
return unless @supermodel.finished()
@insertSubView(@ladderTab = new LadderTabView({}, @level, @sessions))
@insertSubView(@myMatchesTab = new MyMatchesTabView({}, @level, @sessions))