|
|
@ -126,7 +126,7 @@ TimeStep.prototype.first = function() { |
|
|
|
TimeStep.prototype.roundToMinor = function() { |
|
|
|
// round to floor
|
|
|
|
// IMPORTANT: we have no breaks in this switch! (this is no bug)
|
|
|
|
//noinspection FallthroughInSwitchStatementJS
|
|
|
|
// noinspection FallThroughInSwitchStatementJS
|
|
|
|
switch (this.scale) { |
|
|
|
case 'year': |
|
|
|
this.current.setFullYear(this.step * Math.floor(this.current.getFullYear() / this.step)); |
|
|
|