Bug Tracker

Ticket #998: jquery.js.patch

File jquery.js.patch, 358 bytes (added by dohpaz, 16 years ago)

This patch will add a condition to .pop() the last item out of the queue

  • jquery.

    old new  
    16001600
    16011601                        if ( this.queue[type].length == 1 )
    16021602                                fn.apply(this);
     1603
     1604                    // Remove the item from the queue once it has been executed.
     1605                    else if ( this.queue[type].length > 1 )
     1606                   this.queue[type].pop();
    16031607                });
    16041608        }
    16051609