Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

invoke doBeforeLoader after setting `this.context`

  • Loading branch information...
commit f920e6789c1ef7de702fd637af04a88999704bef 1 parent e1f7525
@ekashida authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/loader/js/loader.js
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.