From 8218e308cdf2940a634a9260095d99fbdc8a9bbc Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Fri, 16 Mar 2018 15:30:14 -0400 Subject: [PATCH] Improve identifier names --- js/views/attachment_view.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 861ab218f..570d78d25 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -63,7 +63,7 @@ const VideoView = MediaView.extend({ tagName: 'video' }); // Blacklist common file types known to be unsupported in Chrome - const UnsupportedFileTypes = [ + const unsupportedFileTypes = [ 'audio/aiff', 'video/quicktime', ]; @@ -86,7 +86,7 @@ } }, events: { - click: 'onclick', + click: 'onClick', }, unload() { this.blob = null; @@ -109,7 +109,7 @@ default: return this.model.contentType.split('/')[1]; } }, - onclick() { + onClick() { if (this.isImage()) { this.lightBoxView = new Whisper.LightboxView({ model: this }); this.lightBoxView.render(); @@ -205,7 +205,7 @@ View = VideoView; } - if (!View || _.contains(UnsupportedFileTypes, this.model.contentType)) { + if (!View || _.contains(unsupportedFileTypes, this.model.contentType)) { this.update(); return this; }