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.
doc_EmberJs
2016-11-30 16:51:42
Comments
Leave a Comment

Please login to continue.