Restores the 1.X behavior that allowed chaining set
, setProperties
, and [increment|decrement|toggle]Property
calls.
// Ember 2.X without this addon
Ember.Logger.log(foo.set('bar', true)); // true
Ember.Logger.log(foo.setProperties({ baz: false )); // { baz: false }
// Ember 1.X without this addon
Ember.Logger.log(foo.set('bar', true)); // foo
Ember.Logger.log(foo.setProperties({ baz: false )); // foo
// Ember 2.X with this addon
Ember.Logger.log(foo.set('bar', true)); // foo
Ember.Logger.log(foo.setProperties({ baz: false )); // foo
This essentially "undoes" the work of ember/ember.js#11213.
ember install ember-observable-set-chaining