Side navigation
Ticket #2139: compat_unload_fix.patch
File compat_unload_fix.patch, 0.5 KB (added by alienbrain, January 09, 2008 09:24PM UTC)
Unload event fix for compat-1.0 plugin
Index: compat-1.0.js
===================================================================
--- compat-1.0.js (revision 403)
+++ compat-1.0.js (working copy)
@@ -32,7 +32,7 @@
var o = e[i];
// Handle event unbinding
- jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };
+ jQuery.fn["un"+o] = jQuery.fn["un"+o] || function(f){ return this.unbind(o, f); };
// Finally, handle events that only fire once
jQuery.fn["one"+o] = function(f){
Download in other formats:
Original Format
File compat_unload_fix.patch, 0.5 KB (added by alienbrain, January 09, 2008 09:24PM UTC)
Unload event fix for compat-1.0 plugin
Index: compat-1.0.js
===================================================================
--- compat-1.0.js (revision 403)
+++ compat-1.0.js (working copy)
@@ -32,7 +32,7 @@
var o = e[i];
// Handle event unbinding
- jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };
+ jQuery.fn["un"+o] = jQuery.fn["un"+o] || function(f){ return this.unbind(o, f); };
// Finally, handle events that only fire once
jQuery.fn["one"+o] = function(f){