From 5351b603653b51c03920e1bdc6fb6875c0c11456 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 6 Jun 2017 15:17:20 -0700 Subject: [PATCH] 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 --- js/views/message_view.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/views/message_view.js b/js/views/message_view.js index 3b446547c..ac4279888 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -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);