Permalink
Browse files

invoke doBeforeLoader after setting `this.context`

  • Loading branch information...
1 parent e1f7525 commit f920e6789c1ef7de702fd637af04a88999704bef @ekashida committed Mar 13, 2014
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/loader/js/loader.js
@@ -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;
/**
@@ -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

0 comments on commit f920e67

Please sign in to comment.