javascript - Backbone Collection add strange behavior in Firefox -
faced such strange problem backbone collection. tried add new elements in these way:
sortcollection.add([ {id: "recommended", title: 'recommend movies'}, {id: "popular", title: 'popular movies'}, {id: "watch", title: 'watching now'}, {id: "add", title: 'last editions'} ]);
but, when tried render 1 item id="watch" disappeared. furthermore, if console.log(sortcollection.length) there 3 items.
jsfiddle code here - jsfiddle sample
thanks @doctororange:
this issue seems have been uncovered , solved recently: github.com/jashkenas/backbone/issues/2719
problem solved.
this issue seems have been uncovered , solved recently
Comments
Post a Comment