From fa793bee203ac14021188e12a126e195e83f1647 Mon Sep 17 00:00:00 2001 From: Timmy Willison <4timmywil@gmail.com> Date: Tue, 16 Jan 2018 12:41:40 -0500 Subject: [PATCH] Tests: fix tests in AMD mode --- src/event.js | 2 +- src/var/isFunction.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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"; + }; } ); -- 2.39.5