allow jquery to be declared after angular in the script loading order

This commit is contained in:
Misko Hevery
2011-02-04 16:42:21 -08:00
parent 037f30a0c9
commit a004d487c4
6 changed files with 21 additions and 7 deletions

View File

@@ -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){