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

DS.RESTAdapter#_requestToJQueryAjaxHash()

_requestToJQueryAjaxHash (request) Objectprivate Defined in addon/adapters/rest.js:1344 Convert a request object into a hash which can be passed to jQuery.ajax. Parameters: request Object Returns: Object jQuery ajax hash

MutableArray#setObjects()

setObjects (objects) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:320 Replace all the receiver's content with content of the argument. If argument is an empty array receiver will be cleared. let colors = ['red', 'green', 'blue']; colors.setObjects(['black', 'white']); // ['black', 'white'] colors.setObjects([]); // [] Parameters: objects Ember.Array array whose content will be used for replacing the content of the receiver Retur

Enumerable#isAny()

isAny (key, value) Booleanpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:669 Available since 1.3.0 Returns true if the passed property resolves to the value of the second argument for any item in the enumerable. This method is often simpler/faster than using a callback. Parameters: key String the property to test value [String] optional value to test against. Defaults to `true` Returns: Boolean

Observable#removeObserver()

removeObserver (key, target, method) public Defined in packages/ember-runtime/lib/mixins/observable.js:385 Remove an observer you have previously registered on this object. Pass the same key, target, and method you passed to addObserver() and your target will no longer receive notifications. Parameters: key String The key to observer target Object The target object to invoke method String|Function The method to invoke.

NativeArray

Ember.NativeArray Class PUBLIC Uses: Ember.MutableArray Uses: Ember.Observable Uses: Ember.Copyable Defined in: packages/ember-runtime/lib/system/native_array.js:24 Module: ember-runtime The NativeArray mixin contains the properties needed to make the native Array support Ember.MutableArray and all of its dependent APIs. Unless you have EmberENV.EXTEND_PROTOTYPES or EmberENV.EXTEND_PROTOTYPES.Array set to false, this will be applied automatically. Otherwise you can apply the mixin at anyti

DS.EmbeddedRecordsMixin#_normalizeEmbeddedRelationship()

_normalizeEmbeddedRelationshipprivate Defined in addon/serializers/embedded-records-mixin.js:600

Array#objectsAt()

objectsAt (indexes) Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:257 This returns the objects at the specified indexes, using objectAt. let arr = ['a', 'b', 'c', 'd']; arr.objectsAt([0, 1, 2]); // ['a', 'b', 'c'] arr.objectsAt([2, 3, 4]); // ['c', 'd', undefined] Parameters: indexes Array An array of indexes of items to return. Returns: Array

Enumerable#forEach()

forEach (callback, target) Objectpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:249 Iterates through the enumerable, calling the passed function on each item. This method corresponds to the forEach() method defined in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration. enumerable is th

Bindings

Bindings Unlike most other frameworks that include some sort of binding implementation, bindings in Ember.js can be used with any object. That said, bindings are most often used within the Ember framework itself, and for most problems Ember app developers face, computed properties are the appropriate solution. The easiest way to create a two-way binding is to use a computed.alias(), that specifies the path to another object. husband = Ember.Object.create({ pets: 0 }); Wife = Ember.Object.e