Reputation: 600
I have a strange behavior with the manual binding:
Ember.bind(App, "value", "App.wife.value");
The bound value isn't updated when the source is updated:
App.wife.set('value', 2); // App.value isn't updated
But when the bound value is updated, the source is updated:
App.set('value', 4); // App.wife.value is updated
http://jsfiddle.net/wooandoo/ZN9Sg/1/
What's wrong?
Upvotes: 2
Views: 126
Reputation: 12011
Hum, it seems like Ember.bind() indeed does not work with global path.
Using Ember.bind(App, 'value', 'wife.value')
seems to work. Perhaps there is a bug.
Upvotes: 1