ember-observable-set-chaining
v0.1.0
Published
Restores the 1.X behavior that allowed chaining `set`, `setProperties`, and `[increment|decrement|toggle]Property` calls
Downloads
9
Keywords
Readme
Ember.Observable set
chaining
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.
Installation
ember install ember-observable-set-chaining