3 ms·
Neither is very palatable. MyApp.president = Ember.Object.create(({fullName: (function() {return this.get('firstName')+' '+this.get('lastName');}).property('fi
by nahname 14y ago
Neither is very palatable.
MyApp.president = Ember.Object.create(({fullName: (function() {return this.get('firstName')+' '+this.get('lastName');}).property('firstName', 'lastName')}));
MyApp.president = Ember.Object.create fullName: (-> @get('firstName') + ' ' + @get('lastName') ).property('firstName', 'lastName')
- TazeTSchnitzel 14y agoAt least I can look at the first one and it's more obvious to me what it does. The braces help.