Skip to main content

Bug Tracker

Side navigation

Ticket #7049: jquery.js.patch
File jquery.js.patch, 0.3 KB (added by jclain, September 18, 2010 09:07AM UTC)

this patch is against the nightly build as of sept 18, 2010

--- jquery-nightly.js.orig	2010-09-18 13:00:21.009602454 +0400
+++ jquery-nightly.js	2010-09-18 13:02:11.887574789 +0400
@@ -360,9 +360,9 @@
 
 jQuery.extend({
 	noConflict: function( deep ) {
-		window.$ = _$;
+		if ( window.$ === jQuery ) window.$ = _$;
 
-		if ( deep ) {
+		if ( deep && window.jQuery === jQuery ) {
 			window.jQuery = _jQuery;
 		}

Download in other formats:

Original Format