diff options
author | John Resig <jeresig@gmail.com> | 2010-08-27 13:15:48 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-08-27 13:15:48 -0400 |
commit | ea8b1584b1905bbb414dc2e3cf562c6f3904bd97 (patch) | |
tree | 2a0e11c75fc2578df0ec9d168829c73477002ae0 /src | |
parent | 7f18d29287aad960fda58b29e3362c9323fc23db (diff) | |
download | jquery-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.js | 2 |
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"; }, |