Changeset 2833
- Timestamp:
- 08/22/07 05:44:47 (1 year ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/jquery/jquery.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/jquery/jquery.js
r2821 r2833 20 20 * @cat Core 21 21 */ 22 23 // Map over jQuery in case of overwrite 24 if ( typeof jQuery != "undefined" ) 25 var _jQuery = jQuery; 26 22 27 var jQuery = window.jQuery = function(a,c) { 23 28 // If the context is global, return a new object … … 30 35 // Map over the $ in case of overwrite 31 36 if ( typeof $ != "undefined" ) 32 jQuery._$ = $;37 var _$ = $; 33 38 34 39 // Map the jQuery namespace to the '$' one … … 1346 1351 * @cat Core 1347 1352 */ 1348 noConflict: function() { 1349 if ( jQuery._$ ) 1350 $ = jQuery._$; 1353 noConflict: function(deep) { 1354 window.$ = _$; 1355 if ( deep ) 1356 window.jQuery = _jQuery; 1351 1357 return jQuery; 1352 1358 }, … … 1852 1858 // for it (a handy shortcut) 1853 1859 if ( typeof fn == "string" ) 1854 fn = new Function("a","i","return " + fn);1860 fn = eval("function(a,i){return " + fn + "}"); 1855 1861 1856 1862 var result = []; … … 1906 1912 // for it (a handy shortcut) 1907 1913 if ( typeof fn == "string" ) 1908 fn = new Function("a","return " + fn);1914 fn = eval("function(a){return " + fn + "}"); 1909 1915 1910 1916 var result = [];
