Skip to content

Commit 0cb4ed5

Browse files
committed
- (Refactor) Removed another leaky abstraction from the getTimeSeconds methods
1 parent cb2cdaf commit 0cb4ed5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/flipclock/js/libs/time.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@
285285

286286
if (this.time instanceof Date) {
287287
if (this.factory.countdown) {
288-
if (date.getTime() > this.time.getTime()) {
289-
this.factory.stop();
290-
}
291288
return Math.max(this.time.getTime()/1000 - date.getTime()/1000,0);
292289
} else {
293290
return date.getTime()/1000 - this.time.getTime()/1000 ;

0 commit comments

Comments
 (0)