Makes sure repeatable lists with memory are properly locked.

This commit is contained in:
jaubourg 2011-05-09 00:53:09 +02:00
parent ebb39c2774
commit 05ae8f37b8

View file

@ -191,7 +191,7 @@ jQuery.Callbacks = function( flags, filter ) {
},
// Call all callbacks with the given context and arguments
fireWith: function( context, args ) {
if ( list ) {
if ( stack ) {
if ( firing ) {
if ( !flags.once ) {
stack.push( [ context, args ] );