mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
jquery core: improves #3248. Functions are supported by isFunction.
This commit is contained in:
parent
12bb969411
commit
61784e1581
@ -1137,7 +1137,7 @@ jQuery.extend({
|
|||||||
if( array != null ){
|
if( array != null ){
|
||||||
var i = array.length;
|
var i = array.length;
|
||||||
// The window, strings (and functions) also have 'length'
|
// The window, strings (and functions) also have 'length'
|
||||||
if( i == null || typeof array == 'string' || array.setInterval )
|
if( i == null || typeof array == 'string' || jQuery.isFunction(array) || array.setInterval )
|
||||||
ret[0] = array;
|
ret[0] = array;
|
||||||
else
|
else
|
||||||
while( i )
|
while( i )
|
||||||
|
Loading…
Reference in New Issue
Block a user