Skip to content

Commit 3a43443

Browse files
terrycojonesgibson042
authored andcommitted
Moved too-early assignment inside the if stmt where the var is actually used. Close jquerygh-1292.
1 parent 8643ac7 commit 3a43443

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.mailmap

+1
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@ Yehuda Katz <[email protected]> <[email protected]>
9191
9292
9393
Yiming He <[email protected]>
94+

src/callbacks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ jQuery.Callbacks = function( options ) {
171171
},
172172
// Call all callbacks with the given context and arguments
173173
fireWith: function( context, args ) {
174-
args = args || [];
175-
args = [ context, args.slice ? args.slice() : args ];
176174
if ( list && ( !fired || stack ) ) {
175+
args = args || [];
176+
args = [ context, args.slice ? args.slice() : args ];
177177
if ( firing ) {
178178
stack.push( args );
179179
} else {

0 commit comments

Comments
 (0)