TimerView: don't continue to update after expiration

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-06 15:16:45 -07:00
parent 0c2c36c11a
commit fb7e7cf34c
2 changed files with 6 additions and 0 deletions

View file

@ -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;