Commit 3a434434 authored by terrycojones's avatar terrycojones Committed by Richard Gibson

Moved too-early assignment inside the if stmt where the var is actually used. Close gh-1292.

parent 8643ac77
...@@ -91,3 +91,4 @@ Yehuda Katz <wycats@gmail.com> <wycats@12-189-125-93.att-inc.com> ...@@ -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 ) { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment