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

Remove unnecessary "include" file
This commit is contained in:
Brian Terlson 2015-06-26 11:02:45 -07:00
commit 20d39432b9
2 changed files with 1 additions and 9 deletions

View File

@ -1,7 +0,0 @@
//-----------------------------------------------------------------------------
function fnExists(/*arguments*/) {
for (var i = 0; i < arguments.length; i++) {
if (typeof (arguments[i]) !== "function") return false;
}
return true;
}

View File

@ -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() {
// 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);