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:
f54d277
)
jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists...
author
Ariel Flesler
<aflesler@gmail.com>
Tue, 29 Apr 2008 20:58:22 +0000
(20:58 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Tue, 29 Apr 2008 20:58:22 +0000
(20:58 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
c5fb865
..
c685b4e
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-1117,7
+1117,7
@@
jQuery.extend({
if( array != undefined ){
var i = array.length;
//the window, strings and functions also have 'length'
- if( i != undefined && typeof array == 'object' && array != window )
+ if( i != null && !array.split && array != window && !array.call )
while( i )
ret[--i] = array[i];
else