diff options
Diffstat (limited to 'app/javascript/controllers')
-rw-r--r-- | app/javascript/controllers/timer_controller.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/javascript/controllers/timer_controller.js b/app/javascript/controllers/timer_controller.js index 901ec0a..ef741bf 100644 --- a/app/javascript/controllers/timer_controller.js +++ b/app/javascript/controllers/timer_controller.js @@ -13,16 +13,9 @@ export default class extends Controller { this.counter = this.startValue; this.timerTarget.textContent = this.counter; this.postFailures = 0; - } - - connect() { this.startUpdating(); } - disconnect() { - this.stopUpdating(); - } - startUpdating() { let controller = this; this.timerInterval = setInterval(() => { @@ -50,10 +43,4 @@ export default class extends Controller { } }, 1000); } - - stopUpdating() { - if (this.timerInterval) { - clearInterval(this.timerInterval); - } - } } |