aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorManoj Kumar <nithmanoj@gmail.com>2016-08-14 10:54:16 +0000
committerMichał Gołębiowski <m.goleb@gmail.com>2016-11-30 12:22:24 +0100
commit1b9575b9d14399e9426b9eacdd92b3717846c3f2 (patch)
treecb0991e1c7eda7b3b496f52d09b361e8e6425016 /src/core.js
parent5b4cb0d33731a58384e02ad51e703e7dcb00e424 (diff)
downloadjquery-1b9575b9d14399e9426b9eacdd92b3717846c3f2.tar.gz
jquery-1b9575b9d14399e9426b9eacdd92b3717846c3f2.zip
Core: Deprecate jQuery.isArray
Fixes gh-2961 Closes gh-3278
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core.js b/src/core.js
index f3983b4a8..c99f27e22 100644
--- a/src/core.js
+++ b/src/core.js
@@ -172,11 +172,11 @@ jQuery.extend = jQuery.fn.extend = function() {
// Recurse if we're merging plain objects or arrays
if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
+ ( copyIsArray = Array.isArray( copy ) ) ) ) {
if ( copyIsArray ) {
copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
+ clone = src && Array.isArray( src ) ? src : [];
} else {
clone = src && jQuery.isPlainObject( src ) ? src : {};
@@ -215,8 +215,6 @@ jQuery.extend( {
return jQuery.type( obj ) === "function";
},
- isArray: Array.isArray,
-
isWindow: function( obj ) {
return obj != null && obj === obj.window;
},