mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.
This commit is contained in:
committed by
Richard Gibson
parent
8643ac77fb
commit
3a434434c4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user