Skip to content

Commit

Permalink
Moved too-early assignment inside the if stmt where the var is actual…
Browse files Browse the repository at this point in the history
…ly used. Close gh-1292.
  • Loading branch information
terrycojones authored and gibson042 committed Jun 19, 2013
1 parent 8643ac7 commit 3a43443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ Yehuda Katz <wycats@gmail.com> <wycats@12-189-125-93.att-inc.com>
Yehuda Katz <wycats@gmail.com> <wycats@mobile005.mycingular.net> Yehuda Katz <wycats@gmail.com> <wycats@mobile005.mycingular.net>
Yehuda Katz <wycats@gmail.com> <wycats@Yehuda-Katz.local> Yehuda Katz <wycats@gmail.com> <wycats@Yehuda-Katz.local>
Yiming He <yiminghe@gmail.com> Yiming He <yiminghe@gmail.com>
Terry Jones <terry@jon.es> <terry@fluidinfo.com>
4 changes: 2 additions & 2 deletions src/callbacks.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ jQuery.Callbacks = function( options ) {
}, },
// Call all callbacks with the given context and arguments // Call all callbacks with the given context and arguments
fireWith: function( context, args ) { fireWith: function( context, args ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if ( list && ( !fired || stack ) ) { if ( list && ( !fired || stack ) ) {
args = args || [];
args = [ context, args.slice ? args.slice() : args ];
if ( firing ) { if ( firing ) {
stack.push( args ); stack.push( args );
} else { } else {
Expand Down

0 comments on commit 3a43443

Please sign in to comment.