mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-27 21:31:16 -04:00
Remove schema loading code.
This commit is contained in:
parent
ee09237fec
commit
4979344ee5
3 changed files with 3 additions and 9 deletions
app
|
@ -14,10 +14,6 @@ module.exports = class SuperModel extends Backbone.Model
|
|||
|
||||
resName = url unless resName
|
||||
modelRes = @addModelResource(model, url)
|
||||
schema = model.schema()
|
||||
schemaRes = @addModelResource(schema, schema.urlRoot)
|
||||
@schemas[schema.urlRoot] = schema
|
||||
modelRes.addDependency(schemaRes.name)
|
||||
|
||||
modelRes.load()
|
||||
|
||||
|
|
|
@ -60,11 +60,9 @@ module.exports = class ThangTypeEditView extends View
|
|||
@insertSubView(new ErrorView())
|
||||
)
|
||||
|
||||
thang_res = @supermodel.addModelResource(@thangType, 'thang_type')
|
||||
thang_schema_res = @supermodel.addModelResource(@thangType.schema(), 'thang_type_schema')
|
||||
thang_res.addDependency('thang_type_schema')
|
||||
thangRes = @supermodel.addModelResource(@thangType, 'thang_type')
|
||||
thangRes.load()
|
||||
|
||||
thang_res.load()
|
||||
@listenToOnce(@thangType.schema(), 'sync', @onThangTypeSync)
|
||||
@listenToOnce(@thangType, 'sync', @onThangTypeSync)
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ module.exports = class CocoView extends Backbone.View
|
|||
|
||||
updateProgressBar: (progress) =>
|
||||
prog = "#{parseInt(progress*100)}%"
|
||||
@$el.find('.loading-screen .progress-bar').css('width', prog)
|
||||
@$el?.find('.loading-screen .progress-bar').css('width', prog)
|
||||
|
||||
onLoaded: ->
|
||||
#@render()
|
||||
|
|
Loading…
Add table
Reference in a new issue