mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
remove debugging msg.
This commit is contained in:
parent
7321052c18
commit
974e5e1b24
5 changed files with 10 additions and 10 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue