EventDispatcher

Ember.EventDispatcher Class PRIVATE Extends: Ember.Object Defined in: packages/ember-views/lib/system/event_dispatcher.js:22 Module: ember-views Ember.EventDispatcher handles delegating browser events to their corresponding Ember.Views. For example, when you click on a view, Ember.EventDispatcher ensures that that view's mouseDown method gets called.

Error#deprecateProperty()

deprecateProperty (object, deprecatedKey, newKey) private Defined in packages/ember-metal/lib/deprecate_property.js:11 Available since 1.7.0 Used internally to allow changing properties in a backwards compatible way, and print a helpful deprecation warning. Parameters: object Object The object to add the deprecated property to. deprecatedKey String The property to add (and print deprecation warnings upon accessing). newKey String The property that will be aliased.

Error

Ember.Error Class PUBLIC Extends: Error Defined in: packages/ember-metal/lib/error.js:11 Module: ember A subclass of the JavaScript Error object for use in Ember.

Enumerables

Enumerables In Ember.js, an enumerable is any object that contains a number of child objects, and which allows you to work with those children using the Ember.Enumerable API. The most common enumerable in the majority of apps is the native JavaScript array, which Ember.js extends to conform to the enumerable interface. By providing a standardized interface for dealing with enumerables, Ember.js allows you to completely change the way your underlying data is stored without having to modify the

Enumerable#[]

[]Arrayprivate Defined in packages/ember-runtime/lib/mixins/enumerable.js:848 This property will trigger anytime the enumerable's content changes. You can observe this property to be notified of changes to the enumerable's content. For plain enumerables, this property is read only. Array overrides this method. Returns: this

Enumerable#without()

without (value) Ember.Enumerablepublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:790 Returns a new enumerable that excludes the passed value. The default implementation returns an array regardless of the receiver type. If the receiver does not contain the value it returns the original enumerable. let arr = ['a', 'b', 'a', 'c']; arr.without('a'); // ['b', 'c'] Parameters: value Object Returns: Ember.Enumerable

Enumerable#uniqBy()

uniqByEmber.Enumerablepublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:1082 Returns a new enumerable that contains only items containing a unique property value. The default implementation returns an array regardless of the receiver type. let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }]; arr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }] Returns: Ember.Enumerable

Enumerable#uniq()

uniqEmber.Enumerablepublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:821 Returns a new enumerable that contains only unique values. The default implementation returns an array regardless of the receiver type. let arr = ['a', 'a', 'b', 'b']; arr.uniq(); // ['a', 'b'] This only works on primitive data types, e.g. Strings, Numbers, etc. Returns: Ember.Enumerable

Enumerable#toArray()

toArrayArraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:758 Simply converts the enumerable into a genuine array. The order is not guaranteed. Corresponds to the method implemented by Prototype. Returns: Array the enumerable as an array.

Enumerable#sortBy()

sortBy (property) Arraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:1047 Available since 1.2.0 Converts the enumerable into an array and sorts by the keys specified in the argument. You may provide multiple arguments to sort by multiple properties. Parameters: property String name(s) to sort on Returns: Array The sorted array.