diff options
| author | Misko Hevery | 2011-02-04 16:42:21 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-16 00:48:22 -0500 |
| commit | a004d487c4bb48b2bec19b60bc5ddc5244029be5 (patch) | |
| tree | 48fe97cf0c79dc7126e7bfc5a40441738cb8dbab /src/jqLite.js | |
| parent | 037f30a0c9f819aedf47f0da782e8d1fec0d6489 (diff) | |
| download | angular.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.js | 3 |
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){ |
