Skip to content
Permalink
Browse files

Fixed issue with typeof check - "array" isn't a valid type.

  • Loading branch information
jeresig committed Feb 17, 2008
1 parent f43516f commit a19a123d89424a93068bf69cd1ccbc85eec33715
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -1121,7 +1121,7 @@ jQuery.extend({
var ret = [];

// Need to use typeof to fight Safari childNodes crashes
if ( typeof array != "array" )
if ( array.constructor != Array )
for ( var i = 0, length = array.length; i < length; i++ )
ret.push( array[ i ] );
else

0 comments on commit a19a123

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