cm-web-modules
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "cm-web-modules", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Collection of clean and small ES6 modules for the web", | ||
@@ -5,0 +5,0 @@ "main": "src/LibraryManager.js", |
@@ -14,4 +14,4 @@ /** | ||
this.dateAtLatestStart = null | ||
this.secondsExpiredTillLastPause = 0 | ||
this.secondsExpiredSinceLastStart = 0 | ||
this.secondsExpiredSinceLastPause = 0 | ||
this.timer = null | ||
@@ -23,3 +23,3 @@ this.timerStateChanged = props.onStateChanged | ||
secondsExpired() { | ||
return this.secondsExpiredSinceLastPause + this.secondsExpiredSinceLastStart | ||
return this.secondsExpiredTillLastPause + this.secondsExpiredSinceLastStart | ||
} | ||
@@ -38,3 +38,3 @@ | ||
this.timerStateChanged(this.running()) | ||
this.timerSecondsChanged(this.secondsExpiredSinceLastPause) | ||
this.timerSecondsChanged(this.secondsExpiredTillLastPause) | ||
} | ||
@@ -48,3 +48,3 @@ } | ||
this.endDate = new Date() | ||
this.secondsExpiredSinceLastPause = this.secondsExpired() | ||
this.secondsExpiredTillLastPause = this.secondsExpired() | ||
this.secondsExpiredSinceLastStart = 0 | ||
@@ -61,3 +61,3 @@ this.timerStateChanged(this.running()) | ||
this.secondsExpiredSinceLastStart = 0 | ||
this.secondsExpiredSinceLastPause = 0 | ||
this.secondsExpiredTillLastPause = 0 | ||
this.timerSecondsChanged(this.secondsExpired()) | ||
@@ -64,0 +64,0 @@ this.timerStateChanged(this.running()) |
61865