Ember.makeArray()

makeArray (obj) Arrayprivate Defined in packages/ember-metal/lib/utils.js:370 Forces the passed object to be part of an array. If the object is already an array, it will return the object. Otherwise, it will add the object to an array. If obj is null or undefined, it will return an empty array. Ember.makeArray(); // [] Ember.makeArray(null); // [] Ember.makeArray(undefined); // [] Ember.makeArray('lindsay'); // ['lindsay'] Ember.makeArray([1, 2, 42]); // [1, 2, 42] l

DS.RecordArrayManager#registerFilteredRecordArray()

registerFilteredRecordArray (array, typeClass, filter) Defined in addon/-private/system/record-array-manager.js:310 Register a RecordArray for a given type to be backed by a filter function. This will cause the array to update automatically when records of that type change attribute values or states. Parameters: array DS.RecordArray typeClass DS.Model filter Function

Ember.defineProperty()

defineProperty (obj, keyName, desc, data) private Defined in packages/ember-metal/lib/properties.js:84 NOTE: This is a low-level method used by other parts of the API. You almost never want to call this method directly. Instead you should use Ember.mixin() to define new properties. Defines a property on an object. This method works much like the ES5 Object.defineProperty() method except that it can also accept computed properties and other special descriptors. Normally this method takes onl

ArrayProxy#replaceContent()

replaceContent (idx, amt, objects) Voidprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:114 Should actually replace the specified objects on the content array. You can override this method in subclasses to transform the content item into something new. This method will only be called if content is non-null. Parameters: idx Number The starting index amt Number The number of items to remove from the content. objects Array Optional array of objects to insert or

DS.Store#recordIsLoaded()

recordIsLoaded (modelName, id) Boolean Defined in addon/-private/system/store.js:1637 This method returns if a certain record is already loaded in the store. Use this function to know beforehand if a findRecord() will result in a request or that it will be a cache hit. Example store.recordIsLoaded('post', 1); // false store.findRecord('post', 1).then(function() { store.recordIsLoaded('post', 1); // true }); Parameters: modelName String id String Returns: Boolean

Ember.compare()

compare (v, w) Numberpublic Defined in packages/ember-runtime/lib/compare.js:40 Compares two javascript values and returns: -1 if the first is smaller than the second, 0 if both are equal, 1 if the first is greater than the second. Ember.compare('hello', 'hello'); // 0 Ember.compare('abc', 'dfg'); // -1 Ember.compare(2, 1); // 1 If the types of the two objects are different precedence occurs in the following order, with types earlier in the list considered < types

Array#arrayContentWillChange()

arrayContentWillChange (startIdx, removeAmt, addAmt) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:517 If you are implementing an object that supports Ember.Array, call this method just before the array content changes to notify any observers and invalidate any related properties. Pass the starting index of the change as well as a delta of the amounts to change. Parameters: startIdx Number The starting index in the array that will change. removeAmt Number

ember-extension-support

ember-extension-support Module Parent: ember The ContainerDebugAdapter helps the container and resolver interface with tools that debug Ember such as the Ember Extension for Chrome and Firefox. This class can be extended by a custom resolver implementer to override some of the methods with library-specific code. The methods likely to be overridden are: canCatalogEntriesByType catalogEntriesByType The adapter will need to be registered in the application's container as container-debug-adapter:

Ember.getWithDefault()

getWithDefault (obj, keyName, defaultValue) Objectpublic Defined in packages/ember-metal/lib/property_get.js:106 Retrieves the value of a property from an Object, or a default value in the case that the property returns undefined. Ember.getWithDefault(person, 'lastName', 'Doe'); Parameters: obj Object The object to retrieve from. keyName String The name of the property to retrieve defaultValue Object The value to return if the property value is undefined Returns: Object

DS.Errors#unknownProperty()

unknownPropertyprivate Defined in addon/-private/system/model/errors.js:184