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:
5dc7bb7
)
jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for...
author
Ariel Flesler
<aflesler@gmail.com>
Wed, 13 Aug 2008 18:16:14 +0000
(18:16 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Wed, 13 Aug 2008 18:16:14 +0000
(18:16 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
d910f99
..
64c8331
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-1133,7
+1133,7
@@
jQuery.extend({
if( array != null ){
var i = array.length;
// The window, strings (and functions) also have 'length'
- if( i == null || array.split || array.setInterval )
+ if( i == null || typeof array == 'function' || array.setInterval )
ret[0] = array;
else
while( i )