Skip to content

Commit

Permalink
Tests: fix tests in AMD mode
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Jan 16, 2018
1 parent 5d3a968 commit fa793be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
12 changes: 6 additions & 6 deletions src/var/isFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};

} );

0 comments on commit fa793be

Please sign in to comment.