jquery core: fix for [5828]. Put 'function' instead of 'string'.
This commit is contained in:
parent
ec146fc73d
commit
b69dc841ff
|
@ -1133,7 +1133,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 == 'function' || array.setInterval )
|
if( i == null || typeof array == 'string' || array.setInterval )
|
||||||
ret[0] = array;
|
ret[0] = array;
|
||||||
else
|
else
|
||||||
while( i )
|
while( i )
|
||||||
|
|
Loading…
Reference in a new issue