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
pull/749/head
Scott Nonnenberg 8 years ago
parent fb7e7cf34c
commit 5351b60365

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

Loading…
Cancel
Save