aliasMethod (methodName) public
Makes a method available via an additional name.
1 2 3 4 5 6 7 8 9 10 11 | App.Person = Ember.Object.extend({ name: function () { return 'Tomhuda Katzdale' ; }, moniker: Ember.aliasMethod( 'name' ) }); let goodGuy = App.Person.create(); goodGuy.name(); // 'Tomhuda Katzdale' goodGuy.moniker(); // 'Tomhuda Katzdale' |
Parameters:
-
methodName
String
- name of the method to alias
Please login to continue.