Skip to content

Commit

Permalink
added some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bthaeler committed Feb 7, 2013
1 parent 468dfc8 commit cb9985e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/app/autoload/mojito-client.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,13 @@ YUI.add('mojito-client', function(Y, NAME) {
init: function(config) {
var forwardConfig = {
config: config,
// pass globalHookhandler to addons that may want to use hooks
globalHookHandler: globalHookHandler
};
fireLifecycle('pre-init', forwardConfig);
// if we didn't originaly have hooks enabled, copy back from config object.
// This is the case where an add-on module wants to turn on hooks and
// created an instance of the globalHookHandler.
if (!globalHookHandler) {
globalHookHandler = forwardConfig.globalHookHandler;
}
Expand Down

0 comments on commit cb9985e

Please sign in to comment.