mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed a loop that only worked in webkit.
This commit is contained in:
parent
39d96ab8c5
commit
2fec5dbecd
@ -800,7 +800,7 @@ jQuery.extend({
|
|||||||
deferred = {
|
deferred = {
|
||||||
|
|
||||||
// then( f1, f2, ...)
|
// then( f1, f2, ...)
|
||||||
then: function() {
|
then: function then() {
|
||||||
|
|
||||||
if ( ! cancelled ) {
|
if ( ! cancelled ) {
|
||||||
|
|
||||||
@ -820,7 +820,7 @@ jQuery.extend({
|
|||||||
elem = args[ i ];
|
elem = args[ i ];
|
||||||
type = jQuery.type( elem );
|
type = jQuery.type( elem );
|
||||||
if ( type === "array" ) {
|
if ( type === "array" ) {
|
||||||
deferred.then.apply( deferred , elem );
|
then.apply( this , elem );
|
||||||
} else if ( type === "function" ) {
|
} else if ( type === "function" ) {
|
||||||
callbacks.push( elem );
|
callbacks.push( elem );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user