Ember.run

Ember.run Namespace

PUBLIC

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

Module: ember-metal

Runs the passed target and method inside of a RunLoop, ensuring any deferred actions including bindings and views updates are flushed at the end.

Normally you should not need to invoke this method yourself. However if you are implementing raw event handlers when interfacing with other libraries or plugins, you should probably wrap all of your code inside this call.

run(function() {
  // code to be executed within a RunLoop
});
doc_EmberJs
2016-11-30 16:51:38
Comments
Leave a Comment

Please login to continue.