Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.

This commit is contained in:
terrycojones
2013-06-19 22:36:32 +01:00
committed by Richard Gibson
parent 8643ac77fb
commit 3a434434c4
2 changed files with 3 additions and 2 deletions

View File

@@ -171,9 +171,9 @@ jQuery.Callbacks = function( options ) {
},
// Call all callbacks with the given context and arguments
fireWith: function( context, args ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if ( list && ( !fired || stack ) ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if ( firing ) {
stack.push( args );
} else {