diff options
author | John Resig <jeresig@gmail.com> | 2009-08-10 21:22:31 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-08-10 21:22:31 +0000 |
commit | bddd1837bb512b0ed537fbbdecf3ac3f6067adba (patch) | |
tree | 6c431471fd5ab22f8c6b2fcfae0af03c87dd67ec | |
parent | d6991fa273515a8503692324499edcc71b5c3f64 (diff) | |
download | jquery-bddd1837bb512b0ed537fbbdecf3ac3f6067adba.tar.gz jquery-bddd1837bb512b0ed537fbbdecf3ac3f6067adba.zip |
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.
-rw-r--r-- | src/core.js | 3 | ||||
-rw-r--r-- | src/outro.js | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core.js b/src/core.js index 35cac37b7..890e9a2df 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 7773a74fd..5d87b7e7b 100644 --- a/src/outro.js +++ b/src/outro.js @@ -1 +1,4 @@ +// Expose jQuery to the global object +window.jQuery = window.$ = jQuery; + })(window); |