From: Alex Sexton Date: Mon, 24 Jan 2011 03:19:33 +0000 (-0600) Subject: Moved jQuery global leak to end of file so accidental gEBCN overrides in prototype... X-Git-Tag: 1.5.1rc1~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c50b74372c398b0c85164ad01977c5118b55d418;p=jquery.git Moved jQuery global leak to end of file so accidental gEBCN overrides in prototype don't get caught up in confusion. Fixed tests to reference jQuery variable instead of $ (best practice). Fixes #8033 --- diff --git a/src/core.js b/src/core.js index 520db45ed..92ebb13ef 100644 --- a/src/core.js +++ b/src/core.js @@ -1054,6 +1054,6 @@ function doScrollCheck() { } // Expose jQuery to the global object -return (window.jQuery = window.$ = jQuery); +return jQuery; })(); diff --git a/src/outro.js b/src/outro.js index 7773a74fd..32b0d0878 100644 --- a/src/outro.js +++ b/src/outro.js @@ -1 +1,2 @@ +window.jQuery = window.$ = jQuery; })(window); diff --git a/test/data/offset/absolute.html b/test/data/offset/absolute.html index dc0ba22f2..b4db30a6c 100644 --- a/test/data/offset/absolute.html +++ b/test/data/offset/absolute.html @@ -26,7 +26,7 @@