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:
7f18d29
)
Use the native isArray whenever possible. See perf test by jdalton here: http://jsper...
author
John Resig
<jeresig@gmail.com>
Fri, 27 Aug 2010 17:15:48 +0000
(13:15 -0400)
committer
John Resig
<jeresig@gmail.com>
Fri, 27 Aug 2010 17:15:48 +0000
(13:15 -0400)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
d4a0e61
..
6e1f745
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-441,7
+441,7
@@
jQuery.extend({
return jQuery.type(obj) === "function";
},
- isArray: function( obj ) {
+ isArray: Array.isArray || function( obj ) {
return jQuery.type(obj) === "array";
},