create (arguments) publicstatic
Defined in packages/ember-runtime/lib/system/core_object.js:635
Creates an instance of a class. Accepts either no arguments, or an object containing values to initialize the newly instantiated object with. App.Person = Ember.Object.extend({
helloWorld: function() {
alert("Hi, my name is " + this.get('name'));
}
});
var tom = App.Person.create({
name: 'Tom Dale'
});
tom.helloWorld(); // alerts "Hi, my name is Tom Dale".
create will call the init f