Skip to content

Commit bddd183

Browse files
committed
Moved exposing window.jQuery and window.$ to the end of the jQuery file (helps some compatibility cases with older version of Prototype). Fixes ticket jquery#4834.
1 parent d6991fa commit bddd183

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/core.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ var jQuery = function( selector, context ) {
3939
push = Array.prototype.push,
4040
slice = Array.prototype.slice;
4141

42-
// Expose jQuery to the global object
43-
window.jQuery = window.$ = jQuery;
44-
4542
jQuery.fn = jQuery.prototype = {
4643
init: function( selector, context ) {
4744
var match, elem, ret;

src/outro.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
// Expose jQuery to the global object
2+
window.jQuery = window.$ = jQuery;
3+
14
})(window);

0 commit comments

Comments
 (0)