summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-02-10 10:51:22 -0800
committerMichael Ball <cycomachead@gmail.com>2014-02-10 10:51:22 -0800
commit407dbda43fb3e5e5e1af94417c585dd9004d2e6a (patch)
tree35f47100a8612454bcd22f769149e38d0de992bc
parent5fd102c8a98d18d24d9739cb961ec8dd2ac8935e (diff)
downloadsnap-byow-407dbda43fb3e5e5e1af94417c585dd9004d2e6a.tar.gz
snap-byow-407dbda43fb3e5e5e1af94417c585dd9004d2e6a.zip
jslint style fixes
-rw-r--r--threads.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/threads.js b/threads.js
index 4d3cbce..77632d0 100644
--- a/threads.js
+++ b/threads.js
@@ -2546,24 +2546,24 @@ var dateMap = {
'hour' : 'getHours',
'minute' : 'getMinutes',
'second' : 'getSeconds',
- 'time in milliseconds' : 'getTime' };
+ 'time in milliseconds' : 'getTime'
+};
Process.prototype.reportDate = function (datefn) {
- inputFn = this.inputOption(datefn);
+ var inputFn = this.inputOption(datefn),
+ currDate = new Date(),
+ func = dateMap[inputFn],
+ result = currDate[func]();
if (!dateMap[inputFn]) { return ''; }
- currDate = new Date();
- func = dateMap[inputFn];
- result = currDate[func]();
-
// Show months as 1-12 and days as 1-7
if (inputFn === 'month' || inputFn === 'day of week') {
result += 1;
}
return result;
-}
+};
// Process code mapping