Side navigation
Ticket #2249: one.diff
File one.diff, 0.4 KB (added by flesler, March 18, 2008 10:09PM UTC)
bfattori's proposal
Index: src/event.js
===================================================================
--- src/event.js (revision 5084)
+++ src/event.js (working copy)
@@ -403,7 +403,7 @@
one: function( type, data, fn ) {
return this.each(function(){
jQuery.event.add( this, type, function(event) {
- jQuery(this).unbind(event);
+ jQuery(this).unbind(event, arguments.callee);
return (fn || data).apply( this, arguments);
}, fn && data);
});
Download in other formats:
Original Format
File one.diff, 0.4 KB (added by flesler, March 18, 2008 10:09PM UTC)
bfattori's proposal
Index: src/event.js
===================================================================
--- src/event.js (revision 5084)
+++ src/event.js (working copy)
@@ -403,7 +403,7 @@
one: function( type, data, fn ) {
return this.each(function(){
jQuery.event.add( this, type, function(event) {
- jQuery(this).unbind(event);
+ jQuery(this).unbind(event, arguments.callee);
return (fn || data).apply( this, arguments);
}, fn && data);
});