aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core.js b/src/core.js
index ce43d737e..fc538a49a 100644
--- a/src/core.js
+++ b/src/core.js
@@ -16,10 +16,11 @@ define( [
"./var/fnToString",
"./var/ObjectFunctionString",
"./var/support",
+ "./var/isWindow",
"./core/DOMEval"
], function( arr, document, getProto, slice, concat, push, indexOf,
class2type, toString, hasOwn, fnToString, ObjectFunctionString,
- support, DOMEval ) {
+ support, isWindow, DOMEval ) {
"use strict";
@@ -220,10 +221,6 @@ jQuery.extend( {
return typeof obj === "function" && typeof obj.nodeType !== "number";
},
- isWindow: function( obj ) {
- return obj != null && obj === obj.window;
- },
-
isNumeric: function( obj ) {
// As of jQuery 3.0, isNumeric is limited to
@@ -469,7 +466,7 @@ function isArrayLike( obj ) {
var length = !!obj && "length" in obj && obj.length,
type = jQuery.type( obj );
- if ( jQuery.isFunction( obj ) || jQuery.isWindow( obj ) ) {
+ if ( jQuery.isFunction( obj ) || isWindow( obj ) ) {
return false;
}