aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <4timmywil@gmail.com>2018-01-16 12:41:40 -0500
committerTimmy Willison <4timmywil@gmail.com>2018-01-16 12:41:40 -0500
commitfa793bee203ac14021188e12a126e195e83f1647 (patch)
tree553da250fc71855d57442bc38bbe2ff8d058827d
parent5d3a968e031ab8dff5c07e1d6bb4f196fb82bfa0 (diff)
downloadjquery-fa793bee203ac14021188e12a126e195e83f1647.tar.gz
jquery-fa793bee203ac14021188e12a126e195e83f1647.zip
Tests: fix tests in AMD mode
-rw-r--r--src/event.js2
-rw-r--r--src/var/isFunction.js12
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 <object> 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 <object> 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";
+ };
} );