From bddd1837bb512b0ed537fbbdecf3ac3f6067adba Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 10 Aug 2009 21:22:31 +0000 Subject: [PATCH] Moved exposing window.jQuery and window.$ to the end of the jQuery file (helps some compatibility cases with older version of Prototype). Fixes ticket #4834. --- src/core.js | 3 --- src/outro.js | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.js b/src/core.js index 35cac37..890e9a2 100644 --- a/src/core.js +++ b/src/core.js @@ -39,9 +39,6 @@ var jQuery = function( selector, context ) { push = Array.prototype.push, slice = Array.prototype.slice; -// Expose jQuery to the global object -window.jQuery = window.$ = jQuery; - jQuery.fn = jQuery.prototype = { init: function( selector, context ) { var match, elem, ret; diff --git a/src/outro.js b/src/outro.js index 7773a74..5d87b7e 100644 --- a/src/outro.js +++ b/src/outro.js @@ -1 +1,4 @@ +// Expose jQuery to the global object +window.jQuery = window.$ = jQuery; + })(window); -- 1.7.10.4