Skip to content

Commit

Permalink
jquery core: improves #3248. Functions are supported by isFunction.
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed Oct 29, 2008
1 parent 12bb969 commit 61784e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 61784e1

Please sign in to comment.