0
私は基本的なtodoアプリケーションを分析しています。sproutcoreプロパティ(@each)が更新されていません
StatsView
(メインのtodos.jsおよびtodos.handlebarsから)を削除すると、todoListController
のremaining
メソッド(プロパティ)が自動的に更新されなくなるのはなぜですか?
Todos.todoListController = SC.ArrayController.create({
...
remaining: function() {
console.log('remaining');//doesn't apear in the console
return this.filterProperty('isDone', false).get('length');
}.property('@each.isDone').cacheable(),
...
});
私はStatsView
と私はバインディングを削除したため、これがあると、想像することができます。しかし、それは@each
が変更に目をつけているということではないでしょうか?