2014-09-01 96 views
0

我正在使用骨干,我有一个模型的集合。我想获得一个特定的模型并进行更新。我能够做到这一点与骨干查找和更新模型

var found = cuteyList.findWhere({"date" : post.date, "comment" : post.comment}); 

但我无法更新它。当我做

found.set("date" : "2322"); 

它不触发视图中的变化。

视图

initialize: function() { 
    this.listenTo(this.model, "change", this.movePostit); 
}, 

如何调试,或发现如果视图连接到模型?对主干来说还是很新的。

回答

0

好吧,我发现为什么,在使用铬骨干调试器后,我发现其中一个视图没有被创建。