TimerView: Remove some unused bits of code

- initialize doesn't need to call update because
  MessageView.renderExpiring() calls it immediately
- we don't need the className because that's already present on
  the el it attaches to, part of the MessageView's template.

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-06 15:17:20 -07:00
parent fb7e7cf34c
commit 5351b60365

View file

@ -27,10 +27,6 @@
});
var TimerView = Whisper.View.extend({
templateName: 'hourglass',
className: 'timer',
initialize: function() {
this.update();
},
update: function() {
if (this.timeout) {
clearTimeout(this.timeout);