From 61784e15816a35086388ebd5b98b56dea3535052 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Wed, 29 Oct 2008 01:12:27 +0000 Subject: [PATCH] jquery core: improves #3248. Functions are supported by isFunction. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 9279d17..3a2548f 100644 --- a/src/core.js +++ b/src/core.js @@ -1137,7 +1137,7 @@ jQuery.extend({ if( array != null ){ var i = array.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; else while( i ) -- 1.7.10.4