Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ember Object Model
var Person = Ember.Object.extend({
name: null,
say () {
}
});
Person.create({
name: 'Ivan',
lastName: 'Ivanov'
});
Person.reopenClass({
DEFAULT_NAME: 'Peter'
});
p.get('name')
function Person (name) {
this.name = name;
}
Person.prototype.say = function() {
};
var p = new Person('Ivan');
p.lastName = 'Ivanov'
Person.DEFAULT_NAME = 'Peter';
p.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment