mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Fixed #303
This commit is contained in:
parent
1b75ab15db
commit
c376ba6841
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue