@@ -16,11 +16,12 @@ define( [
1616 "./var/fnToString" ,
1717 "./var/ObjectFunctionString" ,
1818 "./var/support" ,
19+ "./var/isFunction" ,
1920 "./var/isWindow" ,
2021 "./core/DOMEval"
2122] , function ( arr , document , getProto , slice , concat , push , indexOf ,
2223 class2type , toString , hasOwn , fnToString , ObjectFunctionString ,
23- support , isWindow , DOMEval ) {
24+ support , isFunction , isWindow , DOMEval ) {
2425
2526"use strict" ;
2627
@@ -137,7 +138,7 @@ jQuery.extend = jQuery.fn.extend = function() {
137138 }
138139
139140 // Handle case when target is a string or something (possible in deep copy)
140- if ( typeof target !== "object" && ! jQuery . isFunction ( target ) ) {
141+ if ( typeof target !== "object" && ! isFunction ( target ) ) {
141142 target = { } ;
142143 }
143144
@@ -203,15 +204,6 @@ jQuery.extend( {
203204
204205 noop : function ( ) { } ,
205206
206- isFunction : function ( obj ) {
207-
208- // Support: Chrome <=57, Firefox <=52
209- // In some browsers, typeof returns "function" for HTML <object> elements
210- // (i.e., `typeof document.createElement( "object" ) === "function"`).
211- // We don't want to classify *any* DOM node as a function.
212- return typeof obj === "function" && typeof obj . nodeType !== "number" ;
213- } ,
214-
215207 isNumeric : function ( obj ) {
216208
217209 // As of jQuery 3.0, isNumeric is limited to
@@ -419,7 +411,7 @@ function isArrayLike( obj ) {
419411 var length = ! ! obj && "length" in obj && obj . length ,
420412 type = jQuery . type ( obj ) ;
421413
422- if ( jQuery . isFunction ( obj ) || isWindow ( obj ) ) {
414+ if ( isFunction ( obj ) || isWindow ( obj ) ) {
423415 return false ;
424416 }
425417
0 commit comments