Tests: fix tests in AMD mode

This commit is contained in:
Timmy Willison 2018-01-16 12:41:40 -05:00
parent 5d3a968e03
commit fa793bee20
No known key found for this signature in database
GPG Key ID: 5F0C8B73EF56CE6F
2 changed files with 7 additions and 7 deletions

View 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";

View 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";
};
} );