Bug Tracker

Ticket #2249: one.diff

File one.diff, 454 bytes (added by flesler, 10 months ago)

bfattori's proposal

  • src/event.js

     
    403403    one: function( type, data, fn ) { 
    404404        return this.each(function(){ 
    405405            jQuery.event.add( this, type, function(event) { 
    406                 jQuery(this).unbind(event); 
     406                jQuery(this).unbind(event, arguments.callee); 
    407407                return (fn || data).apply( this, arguments); 
    408408            }, fn && data); 
    409409        });