diff options
Diffstat (limited to 'src/var')
-rw-r--r-- | src/var/isFunction.js | 13 | ||||
-rw-r--r-- | src/var/trim.js | 5 |
2 files changed, 5 insertions, 13 deletions
diff --git a/src/var/isFunction.js b/src/var/isFunction.js deleted file mode 100644 index dad662e4f..000000000 --- a/src/var/isFunction.js +++ /dev/null @@ -1,13 +0,0 @@ -define( function() { - "use strict"; - - 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"; - }; - -} ); diff --git a/src/var/trim.js b/src/var/trim.js new file mode 100644 index 000000000..a5e75af36 --- /dev/null +++ b/src/var/trim.js @@ -0,0 +1,5 @@ +define( function() { + "use strict"; + + return "".trim; +} ); |