Test#registerHelper()

registerHelper (name, helperMethod, options) public Defined in packages/ember-testing/lib/test/helpers.js:5 registerHelper is used to register a test helper that will be injected when App.injectTestHelpers is called. The helper method will always be called with the current Application as the first parameter. For example: Ember.Test.registerHelper('boot', function(app) { Ember.run(app, app.advanceReadiness); }); This helper can later be called without arguments because it will be called w

Route#generateController()

generateController (name, model) private Defined in packages/ember-routing/lib/system/route.js:1711 Generates a controller for a route. Example App.PostRoute = Ember.Route.extend({ setupController: function(controller, post) { this._super(controller, post); this.generateController('posts', post); } }); Parameters: name String the name of the controller model Object the model to infer the type of the controller (optional)

DS.Adapter#shouldBackgroundReloadRecord()

shouldBackgroundReloadRecord (store, snapshot) Boolean Defined in addon/adapter.js:580 Available since 1.13.0 This method is used by the store to determine if the store should reload a record after the store.findRecord method resolves a cached record. This method is only checked by the store when the store is returning a cached record. If this method returns true the store will re-fetch a record from the adapter. For example, if you do not want to fetch complex data over a mobile connection

Test.Adapter#asyncStart()

asyncStartpublic Defined in packages/ember-testing/lib/adapters/adapter.js:19 This callback will be called whenever an async operation is about to start. Override this to call your framework's methods that handle async operations.

ComputedProperty#meta()

meta (meta) public Defined in packages/ember-metal/lib/computed.js:270 In some cases, you may want to annotate computed properties with additional metadata about how they function or what values they operate on. For example, computed property functions may close over variables that are then no longer available for introspection. You can pass a hash of these values to a computed property like this: person: Ember.computed(function() { let personId = this.get('personId'); return App.Person

DS.AdapterPopulatedRecordArray

DS.AdapterPopulatedRecordArray Class Extends: DS.RecordArray Defined in: addon/-private/system/record-arrays/adapter-populated-record-array.js:12 Module: ember-data Represents an ordered list of records whose order and membership is determined by the adapter. For example, a query sent to the adapter may trigger a search on the server, whose results would be loaded into an instance of the AdapterPopulatedRecordArray. If you want to update the array and get the latest records from the adapt

TextField#min

minStringpublic Defined in packages/ember-htmlbars/lib/components/text_field.js:144 Available since 1.4.0 The min attribute of input element used with type="number" or type="range". Default: null

Location#getHash()

getHashprivate Defined in packages/ember-routing/lib/location/api.js:181 Available since 1.4.0 Returns the current location.hash by parsing location.href since browsers inconsistently URL-decode location.hash. https://bugzilla.mozilla.org/show_bug.cgi?id=483304

Array#lastIndexOf()

lastIndexOf (object, startAt) Numberpublic Defined in packages/ember-runtime/lib/mixins/array.js:413 Returns the index of the given object's last occurrence. If no startAt argument is given, the search starts from the last position. If it's negative, will count backward from the end of the array. Returns -1 if no match is found. let arr = ['a', 'b', 'c', 'd', 'a']; arr.lastIndexOf('a'); // 4 arr.lastIndexOf('z'); // -1 arr.lastIndexOf('a', 2); // 0 arr.lastIndexOf('a', -1)

DS.Snapshot#modelName

modelName{String} Defined in addon/-private/system/snapshot.js:86 The name of the type of the underlying record for this snapshot, as a string.