0
기본 todo 응용 프로그램을 분석 중입니다.sproutcore 속성 (@each)이 업데이트되지 않습니다.
StatsView
(기본 todos.js 및 todos.handlebars에서) remaining
(todoListController
)의 메소드 (속성)가 자체 업데이트를 중지하는 이유는 무엇입니까?
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
?