projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3443b0e
)
Date.js
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Apr 2016 09:40:00 +0000
(17:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Apr 2016 09:40:00 +0000
(17:40 +0800)
Date.js
patch
|
blob
|
history
diff --git
a/Date.js
b/Date.js
index
dde1c86
..
a756ec5
100644
(file)
--- 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);