diff options
author | terrycojones <terry@fluidinfo.com> | 2013-06-19 22:36:32 +0100 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-06-19 19:17:42 -0400 |
commit | 3a434434c420096cef478936ea21b33e9cfae30c (patch) | |
tree | 0b769a894f0936e1440c9ca5698e57bf4ba61598 /src/callbacks.js | |
parent | 8643ac77fbd7508651639a41eced5338c1738c12 (diff) | |
download | jquery-3a434434c420096cef478936ea21b33e9cfae30c.tar.gz jquery-3a434434c420096cef478936ea21b33e9cfae30c.zip |
Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.
Diffstat (limited to 'src/callbacks.js')
-rw-r--r-- | src/callbacks.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callbacks.js b/src/callbacks.js index 851333114..84c834666 100644 --- a/src/callbacks.js +++ b/src/callbacks.js @@ -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 { |