git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43516f
)
Fixed issue with typeof check - "array" isn't a valid type.
author
John Resig
<jeresig@gmail.com>
Sun, 17 Feb 2008 15:05:55 +0000
(15:05 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 17 Feb 2008 15:05:55 +0000
(15:05 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
aa233f8
..
de82d77
100644
(file)
--- 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