Moved $ alias more to the top (address #137)
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 30 Nov 2006 21:12:15 +0000 (21:12 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 30 Nov 2006 21:12:15 +0000 (21:12 +0000)
src/jquery/jquery.js

index 4164f63..e12245c 100644 (file)
@@ -68,6 +68,9 @@ var jQuery = function(a,c) {
 // Map over the $ in case of overwrite
 if ( typeof $ != "undefined" )
        jQuery._$ = $;
+       
+// Map the jQuery namespace to the '$' one
+var $ = jQuery;
 
 /**
  * This function accepts a string containing a CSS selector,
@@ -181,9 +184,6 @@ if ( typeof $ != "undefined" )
  * @type jQuery
  */
 
-// Map the jQuery namespace to the '$' one
-var $ = jQuery;
-
 jQuery.fn = jQuery.prototype = {
        /**
         * The current version of jQuery.