From a004d487c4bb48b2bec19b60bc5ddc5244029be5 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 4 Feb 2011 16:42:21 -0800 Subject: allow jquery to be declared after angular in the script loading order --- src/jqLite.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jqLite.js') 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){ -- cgit v1.2.3