moved the API info from README.md into api.md, and added a check for methods that have no params.

[ci skip]
This commit is contained in:
Spencer Alger
2013-11-12 10:06:56 -07:00
parent 77a73d22c2
commit 2a2e4b9bee
5 changed files with 123 additions and 103 deletions

View File

@ -30,11 +30,15 @@ function download() {
});
}
try {
var stat = fs.statSync(testFile);
if (!stat.isFile() || stat.ctime < Date.now() - 86400000) {
if (process.env.FORCE_GEN) {
download();
} else {
try {
var stat = fs.statSync(testFile);
if (!stat.isFile() || stat.ctime < Date.now() - 86400000) {
download();
}
} catch (e) {
download();
}
} catch (e) {
download();
}