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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user