コードベースを EmberJS-1.0-rc1 から EmberJS-1.0 にアップグレードしています。
私のバインディングの多くは、もはや一貫して同期していないようです。セマンティクスが変更されたに違いありませんが、代わりにどのように、または何をすべきかがわかりません!
var Widg = Ember.Object.extend({
init: function () {
this._super();
console.log("aliasToValue is: ", this.get('aliasToValue'));
if (this.get('aliasToValue') != this.get('value')) {
throw "This exception doesn't get hit...";
}
console.log("Setting value to 'hello world'");
this.set('value', "hello world");
// I would expect:
// this.get('value') == this.get('aliasToValue')
// but that doesn't seem to work anymore....
console.log("After settting, aliasToValue is: ", this.get('aliasToValue'));
if (this.get('aliasToValue') != this.get('value')) {
throw "Ugh, after setting, they don't match";
}
},
value: "initial value",
aliasToValueBinding: "value"
});
Widg.create(); // EXCEPTION: "Ugh, after setting, they don't match"