Backbone.js - change not triggering while the name change

后端 未结 3 811
天涯浪人
天涯浪人 2021-01-29 06:09

In my backbone function, while the name get change the change function not at all triggering.. any one suggest me the right way to get it.. (actually i need to get changed stuff

3条回答
  •  情书的邮戳
    2021-01-29 06:50

    Try removing keepUpdate from the collection and put a setTimeout in the initialize function of the view at the end. I suggest that fetch is called from the view as well as this.collection.fetch() instead of the collection's initialize function. Makes your code more reusable.

提交回复
热议问题