From d53c33bbb6063b30a913b7e36712f6b6c6a1c1fe Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 10 Jul 2020 10:29:48 -0400 Subject: [PATCH] Update constants.js Forgot to add TIMER_STOPPED so setState() is called with null and .data() method will return erroneously 'running' since state isn't updated --- src/constants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/constants.js b/src/constants.js index 64f1472..c94f6de 100644 --- a/src/constants.js +++ b/src/constants.js @@ -2,6 +2,7 @@ var Constants = { PLUGIN_NAME: 'timer', TIMER_RUNNING: 'running', TIMER_PAUSED: 'paused', + TIMER_STOPPED: 'stopped', TIMER_REMOVED: 'removed', DAYINSECONDS: 86400 };