From: John Resig Date: Mon, 10 Aug 2009 21:22:31 +0000 (+0000) Subject: Moved exposing window.jQuery and window.$ to the end of the jQuery file (helps some... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=bddd1837bb512b0ed537fbbdecf3ac3f6067adba;p=jquery.git 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. --- 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);