From b69dc841ff6d3a3a9bcb8ebe107f1d1cad8a634f Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Thu, 14 Aug 2008 14:03:05 +0000 Subject: [PATCH] jquery core: fix for [5828]. Put 'function' instead of 'string'. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 64c8331..829e153 100644 --- a/src/core.js +++ b/src/core.js @@ -1133,7 +1133,7 @@ jQuery.extend({ if( array != null ){ var i = array.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; else while( i ) -- 1.7.10.4