Ember.stream.Stream

Ember.stream.Stream Class PRIVATE Defined in: packages/ember-htmlbars/lib/streams/stream.js:19 Module: ember-metal

Ember.set()

set (obj, keyName, value) Objectpublic Defined in packages/ember-metal/lib/property_set.js:22 Sets the value of a property on an object, respecting computed properties and notifying observers and other listeners of the change. If the property is not defined but the object implements the setUnknownProperty method then that will be invoked as well. Parameters: obj Object The object to modify. keyName String The property key to set value Object The value to set Returns: Object

Ember.sendEvent()

sendEvent (obj, eventName, params, actions) public Defined in packages/ember-metal/lib/events.js:195 Send an event. The execution of suspended listeners is skipped, and once listeners are removed. A listener without a target is executed on the passed object. If an array of actions is not passed, the actions stored on the passed object are invoked. Parameters: obj eventName String params Array Optional parameters for each listener. actions Array Optional array of actions (lis

Ember.setEngineParent()

setEngineParent (engine, parent) private Defined in packages/ember-application/lib/system/engine-parent.js:23 setEngineParent sets an engine instance's parent instance. Parameters: engine EngineInstance An engine instance. parent EngineInstance The parent engine instance.

Ember.run.throttle()

throttle (target, method, args*, spacing, immediate) Arraypublic Defined in packages/ember-metal/lib/run_loop.js:625 Ensure that the target method is never called more frequently than the specified spacing period. The target method is called immediately. function whoRan() { console.log(this.name + ' ran.'); } let myContext = { name: 'throttle' }; run.throttle(myContext, whoRan, 150); // whoRan is invoked with context myContext // console logs 'throttle ran.' // 50ms passes run.throttle

Ember.run._addQueue()

_addQueue (name, after) private Defined in packages/ember-metal/lib/run_loop.js:668 Add a new named queue after the specified queue. The queue to add will only be added once. Parameters: name String the name of the queue to add. after String the name of the queue to add after.

Ember.runLoadHooks()

runLoadHooks (name, object) private Defined in packages/ember-runtime/lib/system/lazy_load.js:44 Called when an Ember.js package (e.g Ember.Application) has finished loading. Triggers any callbacks registered for this event. Parameters: name String name of hook object Object object to pass to callbacks

Ember.runInDebug()

runInDebug (func) public Defined in packages/ember-debug/lib/index.js:127 Available since 1.5.0 Run a function meant for debugging. In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build. Ember.runInDebug(() => { Ember.Component.reopen({ didInsertElement() { console.log("I'm happy"); } }); }); Parameters: func Function The function to be executed.

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

Ember.run.sync()

syncVoidprivate Defined in packages/ember-metal/lib/run_loop.js:288 Immediately flushes any events scheduled in the 'sync' queue. Bindings use this queue so this method is a useful way to immediately force all bindings in the application to sync. You should call this method anytime you need any changed state to propagate throughout the app immediately without repainting the UI (which happens in the later 'render' queue added by the ember-views package). run.sync(); Returns: Void