Skip to content
Snippets Groups Projects
Commit 20d39432 authored by Brian Terlson's avatar Brian Terlson
Browse files

Merge pull request #337 from bocoup/remove-fn-exists

Remove unnecessary "include" file
parents 9abed155 f8e18ccd
No related branches found
No related tags found
No related merge requests found
//-----------------------------------------------------------------------------
function fnExists(/*arguments*/) {
for (var i = 0; i < arguments.length; i++) {
if (typeof (arguments[i]) !== "function") return false;
}
return true;
}
...@@ -12,7 +12,6 @@ description: > ...@@ -12,7 +12,6 @@ description: >
flags: [noStrict] flags: [noStrict]
includes: includes:
- runTestCase.js - runTestCase.js
- fnExists.js
---*/ ---*/
function testcase() { function testcase() {
...@@ -20,7 +19,7 @@ function testcase() { ...@@ -20,7 +19,7 @@ function testcase() {
// Now, deleting 'foo' directly should fail; // Now, deleting 'foo' directly should fail;
var d = delete foo; var d = delete foo;
if(d === false && fnExists(foo)) if(d === false && typeof foo === 'function')
return true; return true;
} }
runTestCase(testcase); runTestCase(testcase);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment