aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index b607c095..ad7734c9 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -97,7 +97,8 @@ JQLite.prototype = {
}
this.bind('DOMContentLoaded', trigger); // works for modern browsers and IE9
- jqLite(window).bind('load', trigger); // fallback to window.onload for others
+ // we can not use jqLite since we are not done loading and jQuery could be loaded later.
+ new JQLite(window).bind('load', trigger); // fallback to window.onload for others
},
bind: function(type, fn){