Commit 61784e15 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: improves #3248. Functions are supported by isFunction.

parent 12bb9694
...@@ -1137,7 +1137,7 @@ jQuery.extend({ ...@@ -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 )
......
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