Skip to content

Commit

Permalink
[DOC release] Updated Ember.observer example
Browse files Browse the repository at this point in the history
Switched from prototype extension syntax to the new `Ember.observer`
syntax
  • Loading branch information
patsy-issa committed Aug 18, 2015
1 parent dfba524 commit 0559a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-runtime/lib/mixins/observable.js
Expand Up @@ -63,9 +63,9 @@ import isNone from 'ember-metal/is_none';
```javascript
Ember.Object.extend({
valueObserver: function() {
valueObserver: Ember.observer('value', function() {
// Executes whenever the "value" property changes
}.observes('value')
})
});
```
Expand Down

0 comments on commit 0559a22

Please sign in to comment.