Skip to content

Commit

Permalink
invoke doBeforeLoader after setting this.context
Browse files Browse the repository at this point in the history
  • Loading branch information
ekashida committed Mar 13, 2014
1 parent e1f7525 commit f920e67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/loader/js/loader.js
Expand Up @@ -111,11 +111,6 @@ Y.Loader = function(o) {
//Catch no config passed.
o = o || {};

// Hook to patch loader
if (o.doBeforeLoader) {
o.doBeforeLoader(self, arguments);
}

modulekey = META.md5;

/**
Expand Down Expand Up @@ -172,6 +167,11 @@ Y.Loader = function(o) {
*/
self.context = Y;

// Hook that allows the patching of loader
if (o.doBeforeLoader) {
o.doBeforeLoader.apply(self, arguments);
}

/**
* Data that is passed to all callbacks
* @property data
Expand Down

0 comments on commit f920e67

Please sign in to comment.