Commit a19a123d authored by John Resig's avatar John Resig

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

parent f43516f2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment