Ember.run.scheduleOnce()

scheduleOnce (queue, target, method, args*) Objectpublic Defined in packages/ember-metal/lib/run_loop.js:364 Schedules a function to run one time in a given queue of the current RunLoop. Calling this method with the same queue/target/method combination will have no effect (past the initial call). Note that although you can pass optional arguments these will not be considered when looking for duplicates. New arguments will replace previous calls. function sayHi() { console.log('hi'); } ru

DS.RESTAdapter

DS.RESTAdapter Class Extends: DS.Adapter Uses: DS.BuildURLMixin Defined in: addon/adapters/rest.js:31 Module: ember-data The REST adapter allows your store to communicate with an HTTP server by transmitting JSON via XHR. Most Ember.js apps that consume a JSON API should use the REST adapter. This adapter is designed around the idea that the JSON exchanged with the server should be conventional. Success and failure The REST adapter will consider a success any response with a status code of

Instrumentation#subscribe()

subscribe (pattern, object) Subscriberprivate Defined in packages/ember-metal/lib/instrumentation.js:175 Subscribes to a particular event or instrumented block of code. Parameters: pattern [String] Namespaced event name. object [Object] Before and After hooks. Returns: Subscriber

Deploying

Deploying To deploy an Ember application simply transfer the output from ember build to a web server. This can be done with standard Unix file transfer tools such as rsync or scp. There are also services that will let you deploy easily. Deploying with scp You can deploy your application to any web server by copying the output from ember build to any web server: ember build scp -r dist/* myserver.com:/var/www/public/ Deploying to surge.sh Surge.sh allows you to publish any folder to the web f

Route#activate event

activatepublic Defined in packages/ember-routing/lib/system/route.js:695 Available since 1.9.0 This event is triggered when the router enters the route. It is not executed when the model for the route changes. App.ApplicationRoute = Ember.Route.extend({ collectAnalytics: function(){ collectAnalytics(); }.on('activate') });

Mixin

Ember.Mixin Class PUBLIC Defined in: packages/ember-metal/lib/mixin.js:401 Module: ember-metal The Ember.Mixin class allows you to create mixins, whose properties can be added to other classes. For instance, App.Editable = Ember.Mixin.create({ edit: function() { console.log('starting to edit'); this.set('isEditing', true); }, isEditing: false }); // Mix mixins into classes by passing them as the first arguments to // .extend. App.CommentView = Ember.View.extend(App.Editable,

MutableEnumerable#removeObjects()

removeObjects (objects) Objectpublic Defined in packages/ember-runtime/lib/mixins/mutable_enumerable.js:102 Removes each object in the passed enumerable from the receiver. Parameters: objects Ember.Enumerable the objects to remove Returns: Object receiver

HistoryLocation#onUpdateURL()

onUpdateURL (callback) private Defined in packages/ember-routing/lib/location/history_location.js:175 Register a callback to be invoked whenever the browser history changes, including using forward and back buttons. Parameters: callback Function

DS.RecordArray#save()

saveDS.PromiseArray Defined in addon/-private/system/record-arrays/record-array.js:170 Saves all of the records in the RecordArray. Example var messages = store.peekAll('message'); messages.forEach(function(message) { message.set('hasBeenSeen', true); }); messages.save(); Returns: DS.PromiseArray promise

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