mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
d6991fa273
commit
bddd1837bb
@ -39,9 +39,6 @@ var jQuery = function( selector, context ) {
|
|||||||
push = Array.prototype.push,
|
push = Array.prototype.push,
|
||||||
slice = Array.prototype.slice;
|
slice = Array.prototype.slice;
|
||||||
|
|
||||||
// Expose jQuery to the global object
|
|
||||||
window.jQuery = window.$ = jQuery;
|
|
||||||
|
|
||||||
jQuery.fn = jQuery.prototype = {
|
jQuery.fn = jQuery.prototype = {
|
||||||
init: function( selector, context ) {
|
init: function( selector, context ) {
|
||||||
var match, elem, ret;
|
var match, elem, ret;
|
||||||
|
@ -1 +1,4 @@
|
|||||||
|
// Expose jQuery to the global object
|
||||||
|
window.jQuery = window.$ = jQuery;
|
||||||
|
|
||||||
})(window);
|
})(window);
|
||||||
|
Loading…
Reference in New Issue
Block a user