aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-04 16:42:21 -0800
committerMisko Hevery2011-02-16 00:48:22 -0500
commita004d487c4bb48b2bec19b60bc5ddc5244029be5 (patch)
tree48fe97cf0c79dc7126e7bfc5a40441738cb8dbab /src/jqLite.js
parent037f30a0c9f819aedf47f0da782e8d1fec0d6489 (diff)
downloadangular.js-a004d487c4bb48b2bec19b60bc5ddc5244029be5.tar.bz2
allow jquery to be declared after angular in the script loading order
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){