mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
Removed some logs.
This commit is contained in:
parent
3dc3f62473
commit
7640a6365b
2 changed files with 2 additions and 9 deletions
app
|
@ -93,7 +93,6 @@ module.exports = class LevelLoader extends CocoClass
|
|||
systemVersions.push _.pick(system, ['original', 'majorVersion'])
|
||||
if indieSprites = system?.config?.indieSprites
|
||||
for indieSprite in indieSprites
|
||||
console.log 'do not forget', indieSprite
|
||||
thangIDs.push indieSprite.thangType
|
||||
|
||||
for article in @level.get('articles')?.generalArticles or []
|
||||
|
@ -120,9 +119,7 @@ module.exports = class LevelLoader extends CocoClass
|
|||
|
||||
wizard = ThangType.loadUniversalWizard()
|
||||
@supermodel.registerModel wizard
|
||||
if wizard.loading
|
||||
window.res = @supermodel.addModelResource(wizard, 'thang').load()
|
||||
console.log window.res.loading, window.res.loaded
|
||||
@supermodel.addModelResource(wizard, 'thang').load() if wizard.loading
|
||||
|
||||
maybeLoadURL: (url, Model, resourceName) ->
|
||||
return if @supermodel.getModel(url)
|
||||
|
@ -197,7 +194,6 @@ module.exports = class LevelLoader extends CocoClass
|
|||
@world = new World @level.get('name')
|
||||
serializedLevel = @level.serialize(@supermodel)
|
||||
@world.loadFromLevel serializedLevel, false
|
||||
console.log 'loaded from level?', @world
|
||||
|
||||
# Initial Sound Loading
|
||||
|
||||
|
|
|
@ -83,7 +83,6 @@ module.exports = class CocoView extends Backbone.View
|
|||
# View Rendering
|
||||
|
||||
render: ->
|
||||
# console.debug 'gintau' , 'CocoView-Render', @
|
||||
return @ unless me
|
||||
super()
|
||||
return @template if _.isString(@template)
|
||||
|
@ -119,7 +118,7 @@ module.exports = class CocoView extends Backbone.View
|
|||
prog = "#{parseInt(progress*100)}%"
|
||||
@$el?.find('.loading-screen .progress-bar').css('width', prog)
|
||||
|
||||
onLoaded: ->
|
||||
onLoaded: -> @render()
|
||||
|
||||
# Error handling for loading
|
||||
onResourceLoadFailed: (source) ->
|
||||
|
@ -181,14 +180,12 @@ module.exports = class CocoView extends Backbone.View
|
|||
# Loading RootViews
|
||||
|
||||
showLoading: ($el=@$el) ->
|
||||
## console.debug 'gintau', 'showLoading', $el
|
||||
$el.find('>').addClass('hidden')
|
||||
$el.append loadingScreenTemplate()
|
||||
@_lastLoading = $el
|
||||
|
||||
hideLoading: ->
|
||||
return unless @_lastLoading?
|
||||
## console.debug 'gintau', 'hideLoading', @$el
|
||||
@_lastLoading.find('.loading-screen').remove()
|
||||
@_lastLoading.find('>').removeClass('hidden')
|
||||
@_lastLoading = null
|
||||
|
|
Loading…
Reference in a new issue