2012-11-05 138 views
0

我在initialize对我的看法多的听众,看起来是这样的:骨干收集多个

this.collection.on('reset', this.render); 

this.collection.on('add', this.render); 

this.collection.on('change', this.render); 

我很好奇,如果有对所有这些结合起来,因为一个方式,他们都火了render

回答

5

可能是你可以尝试

this.collection.on("reset add change", this.render); 

this。它在那里显示,但不确定如何将其与默认收集事件绑定。