Ember.run.once()

once (target, method, args*) Objectpublic

Defined in packages/ember-metal/lib/run_loop.js:341

Schedule a function to run one time during the current RunLoop. This is equivalent to calling scheduleOnce with the "actions" queue.

Parameters:

target [Object]
The target of the method to invoke.
method Function|String
The method to invoke. If you pass a string it will be resolved on the target at the time the method is invoked.
args* [Object]
Optional arguments to pass to the timeout.

Returns:

Object
Timer information for use in cancelling, see `run.cancel`.
doc_EmberJs
2016-11-30 16:51:40
Comments
Leave a Comment

Please login to continue.