Backbone Marionette CompositeView sorted list - renders extra model on add
问题 Here's the fiddle: http://jsfiddle.net/QhQ8D/10/ Code is down below. Making a chat app and need a sorted, connected user list. Figured Collection with a comparator on name hooked to a CompositeView should do it. Am I doing something wrong in the implementation here? HTML: <div>Enter user name and hit add user to build your list</div> <div id="divadduser"> <input id="inputusername"/> <input id="buttonadduser" type="button" value="add user"/> </div> <div id="divusers"></div> JAVASCRIPT: var