aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-08-27 13:15:48 -0400
committerJohn Resig <jeresig@gmail.com>2010-08-27 13:15:48 -0400
commitea8b1584b1905bbb414dc2e3cf562c6f3904bd97 (patch)
tree2a0e11c75fc2578df0ec9d168829c73477002ae0 /src
parent7f18d29287aad960fda58b29e3362c9323fc23db (diff)
downloadjquery-ea8b1584b1905bbb414dc2e3cf562c6f3904bd97.tar.gz
jquery-ea8b1584b1905bbb414dc2e3cf562c6f3904bd97.zip
Use the native isArray whenever possible. See perf test by jdalton here: http://jsperf.com/isarray-vs-other Fixes #6825.
Diffstat (limited to 'src')
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index d4a0e61bb..6e1f74520 100644
--- 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";
},