Improve identifier names

pull/1/head
Daniel Gasienica 7 years ago
parent 6355c54114
commit 8218e308cd

@ -63,7 +63,7 @@
const VideoView = MediaView.extend({ tagName: 'video' }); const VideoView = MediaView.extend({ tagName: 'video' });
// Blacklist common file types known to be unsupported in Chrome // Blacklist common file types known to be unsupported in Chrome
const UnsupportedFileTypes = [ const unsupportedFileTypes = [
'audio/aiff', 'audio/aiff',
'video/quicktime', 'video/quicktime',
]; ];
@ -86,7 +86,7 @@
} }
}, },
events: { events: {
click: 'onclick', click: 'onClick',
}, },
unload() { unload() {
this.blob = null; this.blob = null;
@ -109,7 +109,7 @@
default: return this.model.contentType.split('/')[1]; default: return this.model.contentType.split('/')[1];
} }
}, },
onclick() { onClick() {
if (this.isImage()) { if (this.isImage()) {
this.lightBoxView = new Whisper.LightboxView({ model: this }); this.lightBoxView = new Whisper.LightboxView({ model: this });
this.lightBoxView.render(); this.lightBoxView.render();
@ -205,7 +205,7 @@
View = VideoView; View = VideoView;
} }
if (!View || _.contains(UnsupportedFileTypes, this.model.contentType)) { if (!View || _.contains(unsupportedFileTypes, this.model.contentType)) {
this.update(); this.update();
return this; return this;
} }

Loading…
Cancel
Save