Skip to content

Commit fa793be

Browse files
committed
Tests: fix tests in AMD mode
1 parent 5d3a968 commit fa793be

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define( [
1010

1111
"./core/init",
1212
"./selector"
13-
], function( jQuery, document, isFunction, documentElement, rnothtmlwhite,
13+
], function( jQuery, document, documentElement, isFunction, rnothtmlwhite,
1414
slice, dataPriv, nodeName ) {
1515

1616
"use strict";

src/var/isFunction.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ define( function() {
33

44
return function isFunction( obj ) {
55

6-
// Support: Chrome <=57, Firefox <=52
7-
// In some browsers, typeof returns "function" for HTML <object> elements
8-
// (i.e., `typeof document.createElement( "object" ) === "function"`).
9-
// We don't want to classify *any* DOM node as a function.
10-
return typeof obj === "function" && typeof obj.nodeType !== "number";
11-
};
6+
// Support: Chrome <=57, Firefox <=52
7+
// In some browsers, typeof returns "function" for HTML <object> elements
8+
// (i.e., `typeof document.createElement( "object" ) === "function"`).
9+
// We don't want to classify *any* DOM node as a function.
10+
return typeof obj === "function" && typeof obj.nodeType !== "number";
11+
};
1212

1313
} );

0 commit comments

Comments
 (0)