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
@addSchemaDefaults()
else
{me} = require 'lib/auth'
@loadSchema() if me?.loaded
@loadSchema()
@once 'sync', @onLoaded, @
@saveBackup = _.debounce(@saveBackup, 500)