Ember.onLoad()

onLoad (name, callback) private

Defined in packages/ember-runtime/lib/system/lazy_load.js:14

Detects when a specific package of Ember (e.g. 'Ember.Application') has fully loaded and is available for extension.

The provided callback will be called with the name passed resolved from a string into the object:

Ember.onLoad('Ember.Application' function(hbars) {
  hbars.registerHelper(...);
});

Parameters:

name String
name of hook
callback Function
callback to be called
doc_EmberJs
2016-11-30 16:51:36
Comments
Leave a Comment

Please login to continue.