From fc4215f8b8682124642c155b49958fb54fee665f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 20 Apr 2016 17:40:00 +0800 Subject: [PATCH] Date.js --- Date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Date.js b/Date.js index dde1c86993..a756ec55f9 100644 --- a/Date.js +++ b/Date.js @@ -775,7 +775,7 @@ document.write(dt3); //returns 'Fri Oct 06 2006 07:30:00' */ Date.prototype.add = function(interval, value){ var d = this.clone(); - if (!interval || value === 0) return d; + if (!interval || value === 0) { return d; } switch(interval.toLowerCase()){ case Date.MILLI: d.setMilliseconds(this.getMilliseconds() + value); -- 2.39.2