TimerView: don't continue to update after expiration
FREEBIE
This commit is contained in:
parent
0c2c36c11a
commit
fb7e7cf34c
2 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,9 @@
|
|||
clearTimeout(this.timeout);
|
||||
this.timeout = null;
|
||||
}
|
||||
if (this.model.isExpired()) {
|
||||
return this;
|
||||
}
|
||||
if (this.model.isExpiring()) {
|
||||
this.render();
|
||||
var totalTime = this.model.get('expireTimer') * 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue