X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore.js;h=3a2548f175182d35bb635ee16d3a1bb20ca56586;hb=61784e15816a35086388ebd5b98b56dea3535052;hp=9279d179ab57366282bca78d4f1761d998f1cd70;hpb=63bfe1ded1fe01d326594e9a757a2c2ceab8d8ae;p=jquery.git 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 )