说我有一个带有计算的依存关系树的控制器
a
b
c
d
e
c
f
c
a
应该重新计算所有属性c
的绑定是b
,e
,f
如何注销哪个绑定导致了计算属性的更新?我想做类似的事情
const ctrl = Ember.Controller.extend({
a: null,
b: Ember.computed('a', foo),
c: Ember.computed('b, e, f', function () {
// did b, e, or f trigger this?
}),
d: Ember.computed('c', fizz),
e: Ember.computed('a', buzz),
f: Ember.computed('a', blah)
});
ctrl.set('a', 'foobar');
// => should see if b, e, or f was triggered last