Skip to content

Commit

Permalink
[DOC beta] Remove out-of-date docs re: this.set chaining
Browse files Browse the repository at this point in the history
With #11213 having just been merged,
the bit about chaining in the docs became wrong.

This PR just deletes it and fixes up the specified return value (in the docs).
  • Loading branch information
Arun Srinivasan committed Jun 15, 2015
1 parent 59a5d5c commit 4cc6ab7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/ember-runtime/lib/mixins/observable.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,10 @@ export default Mixin.create({
another object) will be placed in a queue and called at a later time in a
coalesced manner.
### Chaining
In addition to property changes, `set()` returns the value of the object
itself so you can do chaining like this:
```javascript
record.set('firstName', 'Charles').set('lastName', 'Jolley');
```
@method set
@param {String} keyName The property to set
@param {Object} value The value to set or `null`.
@return {Ember.Observable}
@return {Object} The passed value
@public
*/
set(keyName, value) {
Expand Down

0 comments on commit 4cc6ab7

Please sign in to comment.