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.

This commit is contained in:
John Resig 2009-08-10 21:22:31 +00:00
parent d6991fa273
commit bddd1837bb
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -1 +1,4 @@
// Expose jQuery to the global object
window.jQuery = window.$ = jQuery;
})(window);