mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.
This commit is contained in:
parent
8643ac77fb
commit
3a434434c4
1
.mailmap
1
.mailmap
@ -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>
|
||||||
|
@ -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 ) {
|
||||||
|
if ( list && ( !fired || stack ) ) {
|
||||||
args = args || [];
|
args = args || [];
|
||||||
args = [ context, args.slice ? args.slice() : args ];
|
args = [ context, args.slice ? args.slice() : args ];
|
||||||
if ( list && ( !fired || stack ) ) {
|
|
||||||
if ( firing ) {
|
if ( firing ) {
|
||||||
stack.push( args );
|
stack.push( args );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user