Fixed adding new components in the thang components edit view.

This commit is contained in:
Scott Erickson 2014-08-26 13:48:57 -07:00
parent 39d0df5153
commit 2f72aa4f47

View file

@ -348,6 +348,8 @@ module.exports = class ThangComponentsEditView extends CocoView
class ThangComponentsObjectNode extends TreemaObjectNode
addNewChild: -> @addNewChildForKey('') # HACK to get the object adding to act more like adding to an array
getChildren: ->
children = super(arguments...)
children.sort(@sortFunction)