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 a19a123
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.