Skip to content

Commit

Permalink
[DOC release] finish example for aliasMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko committed Jun 16, 2014
1 parent 720e55d commit c290992
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ember-metal/lib/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ Alias.prototype = new Descriptor();
moniker: Ember.aliasMethod('name')
});
var goodGuy = App.Person.create()
var goodGuy = App.Person.create();
goodGuy.name(); // 'Tomhuda Katzdale'
goodGuy.moniker(); // 'Tomhuda Katzdale'
```
@method aliasMethod
Expand Down

0 comments on commit c290992

Please sign in to comment.