Skip to content

Commit

Permalink
Moved exposing window.jQuery and window.$ to the end of the jQuery fi…
Browse files Browse the repository at this point in the history
…le (helps some compatibility cases with older version of Prototype). Fixes ticket #4834.
  • Loading branch information
jeresig committed Aug 10, 2009
1 parent d6991fa commit bddd183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/outro.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Expose jQuery to the global object
window.jQuery = window.$ = jQuery;

})(window);

0 comments on commit bddd183

Please sign in to comment.