Enumerable#includes()

includes (obj) Booleanpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:1115 Returns true if the passed object can be found in the enumerable. [1, 2, 3].includes(2); // true [1, 2, 3].includes(4); // false [1, 2, undefined].includes(undefined); // true [1, 2, null].includes(null); // true [1, 2, NaN].includes(NaN); // true Parameters: obj Object The object to search for. Returns: Boolean `t

RSVP.denodeify()

denodeify (nodeFunc, options) Functionstatic Defined in bower_components/rsvp/lib/rsvp/node.js:73 RSVP.denodeify takes a 'node-style' function and returns a function that will return an RSVP.Promise. You can use denodeify in Node.js or the browser when you'd prefer to use promises over using callbacks. For example, denodeify transforms the following: var fs = require('fs'); fs.readFile('myfile.txt', function(err, data){ if (err) return handleError(err); handleData(data); }); into: var

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

DS.Model.eachAttribute()

eachAttribute (callback, binding) static Defined in addon/-private/system/model/attr.js:121 Iterates through the attributes of the model, calling the passed function on each attribute. The callback method you provide should have the following signature (all parameters are optional): function(name, meta); name the name of the current property in the iteration meta the meta object for the attribute property in the iteration Note that in addition to a callback, you can also pass an optional

DS.JSONSerializer#normalizeFindManyResponse()

normalizeFindManyResponse (store, primaryModelClass, payload, id, requestType) Object Defined in addon/serializers/json.js:332 Available since 1.13.0 Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String Returns: Object JSON-API Document

String.isHTMLSafe()

isHTMLSafeBooleanpublicstatic Defined in packages/ember-htmlbars/lib/utils/string.js:101 Detects if a string was decorated using Ember.String.htmlSafe. var plainString = 'plain string', safeString = Ember.String.htmlSafe('<div>someValue</div>'); Ember.String.isHTMLSafe(plainString); // false Ember.String.isHTMLSafe(safeString); // true Returns: Boolean `true` if the string was decorated with `htmlSafe`, `false` otherwise.

Copyable#copy()

copy (deep) Objectprivate Defined in packages/ember-runtime/lib/mixins/copyable.js:29 Required. You must implement this method to apply this mixin. Override to return a copy of the receiver. Default implementation raises an exception. Parameters: deep Boolean if `true`, a deep copy of the object should be made Returns: Object copy of receiver

HistoryLocation#willDestroy()

willDestroyprivate Inherited from Ember.CoreObject but overwritten in packages/ember-routing/lib/location/history_location.js:221 Cleans up the HistoryLocation event listener.

Function#property()

propertypublic Defined in packages/ember-runtime/lib/ext/function.js:15 The property extension of Javascript's Function prototype is available when EmberENV.EXTEND_PROTOTYPES or EmberENV.EXTEND_PROTOTYPES.Function is true, which is the default. Computed properties allow you to treat a function like a property: MyApp.President = Ember.Object.extend({ firstName: '', lastName: '', fullName: function() { return this.get('firstName') + ' ' + this.get('lastName'); }.property() // Ca

Transition#then()

then (onFulfilled, onRejected, label) Promisepublic Defined in bower_components/router.js/lib/router/transition.js:135 A standard promise hook that resolves if the transition succeeds and rejects if it fails/redirects/aborts. Forwards to the internal promise property which you can use in situations where you want to pass around a thennable, but not the Transition itself. Parameters: onFulfilled Function onRejected Function label String optional string for labeling the promise. Us