]> source.dussan.org Git - jquery.git/commitdiff
Make sure that jQuery is being exposed outside of core (this will be stripped during...
authorjeresig <jeresig@gmail.com>
Thu, 9 Sep 2010 12:23:10 +0000 (08:23 -0400)
committerjeresig <jeresig@gmail.com>
Thu, 9 Sep 2010 12:23:10 +0000 (08:23 -0400)
src/core.js

index 65d32a39cf3f1506034738f4751145d75584f009..d6ef236f48a8622d659a53fb2fd034ef84946aa6 100644 (file)
@@ -1,4 +1,4 @@
-(function() {
+var jQuery = (function() {
 
 // Define a local copy of jQuery
 var jQuery = function( selector, context ) {
@@ -826,6 +826,6 @@ function doScrollCheck() {
 }
 
 // Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
+return window.jQuery = window.$ = jQuery;
 
 })();