Fixed thang avatar view thang loading some more.

This commit is contained in:
Scott Erickson 2014-05-19 23:02:02 -07:00
parent a8abe8c887
commit 04da5b4714

View file

@ -21,8 +21,10 @@ module.exports = class ThangAvatarView extends View
unless @thangType.isFullyLoaded() or @thangType.loading
@thangType.fetch()
@supermodel.loadModel @thangType, 'thang'
# couldn't get the level view to load properly through the supermodel
# so just doing it manually this time.
@listenTo @thangType, 'sync', @render
getSpriteThangType: ->
thangs = @supermodel.getModels(ThangType)