summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2015-06-25 15:30:58 +0200
committerjmoenig <jens@moenig.org>2015-06-25 15:30:58 +0200
commitf4ff1056eae012b9a257c7dea88af3d007012632 (patch)
treee39c96816d391898d344a10995aa1941887a6e81
parentc95347a6b0692a41e7e4ca1ef556e6002ac2ffce (diff)
downloadsnap-f4ff1056eae012b9a257c7dea88af3d007012632.tar.gz
snap-f4ff1056eae012b9a257c7dea88af3d007012632.zip
update threads.js version
-rw-r--r--threads.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/threads.js b/threads.js
index efe9ba4..edbe2cf 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2015-May-01';
+modules.threads = '2015-June-25';
var ThreadManager;
var Process;
@@ -2641,7 +2641,8 @@ Process.prototype.reportTimer = function () {
// Process Dates and times in Snap
Process.prototype.reportDate = function (datefn) {
- var inputFn = this.inputOption(datefn),
+ var currDate, func, result,
+ inputFn = this.inputOption(datefn),
// Map block options to built-in functions
dateMap = {
'year' : 'getFullYear',
@@ -2655,16 +2656,14 @@ Process.prototype.reportDate = function (datefn) {
};
if (!dateMap[inputFn]) { return ''; }
-
- var currDate = new Date(),
- func = dateMap[inputFn],
- result = currDate[func]();
+ 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;
};