]> source.dussan.org Git - jquery.git/commitdiff
Tests: fix tests in AMD mode
authorTimmy Willison <4timmywil@gmail.com>
Tue, 16 Jan 2018 17:41:40 +0000 (12:41 -0500)
committerTimmy Willison <4timmywil@gmail.com>
Tue, 16 Jan 2018 17:41:40 +0000 (12:41 -0500)
src/event.js
src/var/isFunction.js

index aba26103daef09a34e46b6778aa9b3e249becaf7..6cbe774baf2a808bad7cee4605332d4da3166328 100644 (file)
@@ -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";
index a05858284dcff7bc7348fe9fc06411600e6d725b..dad662e4fd21e8f4642d31e9fb3ff0c5e67e41f9 100644 (file)
@@ -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";
+  };
 
 } );