Models

Introduction Models are objects that represent the underlying data that your application presents to the user. Different apps will have very different models, depending on what problems they're trying to solve. For example, a photo sharing application might have a Photo model to represent a particular photo, and a PhotoAlbum that represents a group of photos. In contrast, an online shopping app would probably have different models, like ShoppingCart, Invoice, or LineItem. Models tend to be pe

Mixin.create()

create (arguments) publicstatic Defined in packages/ember-metal/lib/mixin.js:503 Parameters: arguments

Mixin

Ember.Mixin Class PUBLIC Defined in: packages/ember-metal/lib/mixin.js:401 Module: ember-metal The Ember.Mixin class allows you to create mixins, whose properties can be added to other classes. For instance, App.Editable = Ember.Mixin.create({ edit: function() { console.log('starting to edit'); this.set('isEditing', true); }, isEditing: false }); // Mix mixins into classes by passing them as the first arguments to // .extend. App.CommentView = Ember.View.extend(App.Editable,

Mixin#apply()

apply (obj) private Defined in packages/ember-metal/lib/mixin.js:555 Parameters: obj Returns: applied object

Mixin#detect()

detect (obj) Booleanprivate Defined in packages/ember-metal/lib/mixin.js:586 Parameters: obj Returns: Boolean

MapWithDefault#get()

get (key) *private Inherited from Ember.Map but overwritten in packages/ember-metal/lib/map.js:448 Retrieve the value associated with a given key. Parameters: key * Returns: * the value associated with the key, or the default value

MapWithDefault.create()

create (options) Ember.MapWithDefault|Ember.Mapprivatestatic Inherited from Ember.Map but overwritten in packages/ember-metal/lib/map.js:426 Parameters: options [] defaultValue [*] Returns: Ember.MapWithDefault|Ember.Map If options are passed, returns `Ember.MapWithDefault` otherwise returns `Ember.Map`

MapWithDefault#copy()

copyEmber.MapWithDefaultprivate Inherited from Ember.Map but overwritten in packages/ember-metal/lib/map.js:468 Returns: Ember.MapWithDefault

Map#set()

set (key, value) Ember.Mapprivate Defined in packages/ember-metal/lib/map.js:294 Adds a value to the map. If a value for the given key has already been provided, the new value will replace the old value. Parameters: key * value * Returns: Ember.Map

MapWithDefault

Ember.MapWithDefault Class PRIVATE Extends: Ember.Map Defined in: packages/ember-metal/lib/map.js:412 Module: ember-metal