aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2008-02-17 15:05:55 +0000
committerJohn Resig <jeresig@gmail.com>2008-02-17 15:05:55 +0000
commita19a123d89424a93068bf69cd1ccbc85eec33715 (patch)
treea286b26d44dfe83f7fb6c5c9ff429705a81435dc
parentf43516f20975d3b3fc7910d187af97d7a8c6dc6f (diff)
downloadjquery-a19a123d89424a93068bf69cd1ccbc85eec33715.tar.gz
jquery-a19a123d89424a93068bf69cd1ccbc85eec33715.zip
Fixed issue with typeof check - "array" isn't a valid type.
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index aa233f883..de82d7742 100644
--- a/src/core.js
+++ b/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