Side navigation
Ticket #6371: jquery.noconflict.patch
File jquery.noconflict.patch, 0.2 KB (added by elijahr, March 29, 2010 05:26AM UTC)
Patch to prevent jQuery.noConflict() from reverting $ if $ is not jQuery
--- jquery-1.4.1.js
+++ jquery-1.4.1.js
@@ -355,7 +355,8 @@
jQuery.extend({
noConflict: function( deep ) {
- window.$ = _$;
+ if (window.$ === jQuery)
+ window.$ = _$;
if ( deep ) {
window.jQuery = _jQuery;
Download in other formats:
Original Format
File jquery.noconflict.patch, 0.2 KB (added by elijahr, March 29, 2010 05:26AM UTC)
Patch to prevent jQuery.noConflict() from reverting $ if $ is not jQuery
--- jquery-1.4.1.js
+++ jquery-1.4.1.js
@@ -355,7 +355,8 @@
jQuery.extend({
noConflict: function( deep ) {
- window.$ = _$;
+ if (window.$ === jQuery)
+ window.$ = _$;
if ( deep ) {
window.jQuery = _jQuery;