Skip to content
Permalink
Browse files

Moved too-early assignment inside the if stmt where the var is actual…

…ly used. Close gh-1292.
  • Loading branch information...
terrycojones authored and gibson042 committed Jun 19, 2013
1 parent 8643ac7 commit 3a434434c420096cef478936ea21b33e9cfae30c
Showing with 3 additions and 2 deletions.
  1. +1 −0 .mailmap
  2. +2 −2 src/callbacks.js
@@ -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@Yehuda-Katz.local>
Yiming He <yiminghe@gmail.com>
Terry Jones <terry@jon.es> <terry@fluidinfo.com>
@@ -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 {

0 comments on commit 3a43443

Please sign in to comment.
You can’t perform that action at this time.