Remove schema loading code.

This commit is contained in:
Ting-Kuan 2014-04-13 10:36:09 -04:00
parent ee09237fec
commit 4979344ee5
3 changed files with 3 additions and 9 deletions
app

View file

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

View file

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

View file

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