Skip to content
Permalink
Browse files

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

  • Loading branch information
flesler committed Oct 29, 2008
1 parent 12bb969 commit 61784e15816a35086388ebd5b98b56dea3535052
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 )

0 comments on commit 61784e1

Please sign in to comment.
You can’t perform that action at this time.