diff --git a/src/event.js b/src/event.js index aba26103d..6cbe774ba 100644 --- a/src/event.js +++ b/src/event.js @@ -10,7 +10,7 @@ define( [ "./core/init", "./selector" -], function( jQuery, document, isFunction, documentElement, rnothtmlwhite, +], function( jQuery, document, documentElement, isFunction, rnothtmlwhite, slice, dataPriv, nodeName ) { "use strict"; diff --git a/src/var/isFunction.js b/src/var/isFunction.js index a05858284..dad662e4f 100644 --- a/src/var/isFunction.js +++ b/src/var/isFunction.js @@ -3,11 +3,11 @@ define( function() { return function isFunction( obj ) { - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - return typeof obj === "function" && typeof obj.nodeType !== "number"; - }; + // Support: Chrome <=57, Firefox <=52 + // In some browsers, typeof returns "function" for HTML elements + // (i.e., `typeof document.createElement( "object" ) === "function"`). + // We don't want to classify *any* DOM node as a function. + return typeof obj === "function" && typeof obj.nodeType !== "number"; + }; } );