This commit is contained in:
Scott Erickson 2014-01-30 16:19:55 -08:00
parent 1b75ab15db
commit c376ba6841

View file

@ -41,10 +41,12 @@ module.exports = class ThangTypeEditView extends View
@thangType = new ThangType(_id: @thangTypeID)
@thangType.saveBackups = true
@thangType.fetch()
@thangType.once('sync', @onThangTypeSync)
@thangType.schema().once 'sync', @onThangTypeSync, @
@thangType.once 'sync', @onThangTypeSync, @
@refreshAnimation = _.debounce @refreshAnimation, 500
onThangTypeSync: =>
return unless @thangType.loaded and ThangType.hasSchema()
@startsLoading = false
@files = new DocumentFiles(@thangType)
@files.fetch()