Fixed schema loading.

This commit is contained in:
Scott Erickson 2014-04-05 11:48:21 -07:00
parent abaf32fc7a
commit 8fe568d3a4

View file

@ -23,8 +23,7 @@ class CocoModel extends Backbone.Model
if @constructor.schema?.loaded if @constructor.schema?.loaded
@addSchemaDefaults() @addSchemaDefaults()
else else
{me} = require 'lib/auth' @loadSchema()
@loadSchema() if me?.loaded
@once 'sync', @onLoaded, @ @once 'sync', @onLoaded, @
@saveBackup = _.debounce(@saveBackup, 500) @saveBackup = _.debounce(@saveBackup, 500)