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:18:11 -0400 |
commit | cafd88ec1d4aa4b2a616bd1c6a07c57d8c3e6427 (patch) | |
tree | 772aaae34fd3c5d9e6074582b7f87e9b34432793 /src/callbacks.js | |
parent | f22b0745ada5af7fd163ec3809496e1d09269f35 (diff) | |
download | jquery-cafd88ec1d4aa4b2a616bd1c6a07c57d8c3e6427.tar.gz jquery-cafd88ec1d4aa4b2a616bd1c6a07c57d8c3e6427.zip |
Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.
(cherry picked from commit 3a434434c420096cef478936ea21b33e9cfae30c)
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 5ca7cea25..f3a643bd8 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 { |