onLoad (name, callback) private
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:
1 2 3 | Ember.onLoad( 'Ember.Application' function (hbars) { hbars.registerHelper(...); }); |
Parameters:
-
name
String
- name of hook
-
callback
Function
- callback to be called
Please login to continue.