From 8fe568d3a42c069ec827ec28fa91901d1459d3b7 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Sat, 5 Apr 2014 11:48:21 -0700 Subject: [PATCH] Fixed schema loading. --- app/models/CocoModel.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/CocoModel.coffee b/app/models/CocoModel.coffee index 9f4a88556..862ba72fd 100644 --- a/app/models/CocoModel.coffee +++ b/app/models/CocoModel.coffee @@ -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)