Created
April 11, 2014 04:17
-
-
Save toranb/10440620 to your computer and use it in GitHub Desktop.
step4 person.js file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Person = Ember.Object.extend(); | |
Person.reopenClass({ | |
people: [], | |
find: function() { | |
var first = Person.create({name: 'toran'}); | |
var last = Person.create({name: 'matt'}); | |
this.people.pushObject(first); | |
this.people.pushObject(last); | |
return this.people; | |
} | |
}); | |
export default Person; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment