Skip to content

Commit cc55894

Browse files
v4.3.2
1 parent e8173d1 commit cc55894

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

dist/easytimer.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* easytimer.js
3-
* Generated: 2020-11-13
4-
* Version: 4.3.1
3+
* Generated: 2021-02-28
4+
* Version: 4.3.2
55
*/
66

77
(function (global, factory) {
@@ -252,14 +252,15 @@
252252
setParams(defaultParams);
253253

254254
function updateCounters(precision, roundedValue) {
255+
var unitsPerGroup = groupedUnits[precision];
255256
totalCounters[precision] = roundedValue;
256257

257258
if (precision === DAYS) {
258-
counters[precision] = roundedValue;
259+
counters[precision] = Math.abs(roundedValue);
259260
} else if (roundedValue >= 0) {
260-
counters[precision] = mod(roundedValue, groupedUnits[precision]);
261+
counters[precision] = mod(roundedValue, unitsPerGroup);
261262
} else {
262-
counters[precision] = groupedUnits[precision] - mod(roundedValue, groupedUnits[precision]);
263+
counters[precision] = mod(unitsPerGroup - mod(roundedValue, unitsPerGroup), unitsPerGroup);
263264
}
264265
}
265266

dist/easytimer.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/examples.min.css

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/examples.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easytimer.js",
3-
"version": "4.3.1",
3+
"version": "4.3.2",
44
"description": "Timer/Chronometer/Countdown compatible with AMD and NodeJS",
55
"main": "dist/easytimer.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)