Don't use shorthand syntax for functions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-07-20 09:39:52 +02:00 committed by John Molakvoæ (skjnldsv)
parent d4de77afb9
commit e302cadae2
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
2 changed files with 8 additions and 8 deletions

View File

@ -364,7 +364,7 @@
}); });
}, },
showNoteForm(event) { showNoteForm: function(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
var self = this; var self = this;
@ -379,7 +379,7 @@
$form.find('textarea').focus(); $form.find('textarea').focus();
}, },
deleteNote(event) { deleteNote: function(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
var self = this; var self = this;
@ -398,7 +398,7 @@
self.sendNote('', shareId, $menu); self.sendNote('', shareId, $menu);
}, },
updateNote(event) { updateNote: function(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
var self = this; var self = this;
@ -416,7 +416,7 @@
self.sendNote(message, shareId, $menu); self.sendNote(message, shareId, $menu);
}, },
sendNote(note, shareId, $menu) { sendNote: function(note, shareId, $menu) {
var $form = $menu.next('li.share-note-form'); var $form = $menu.next('li.share-note-form');
var $submit = $form.find('input.share-note-submit'); var $submit = $form.find('input.share-note-submit');
var $error = $form.find('input.share-note-error'); var $error = $form.find('input.share-note-error');

View File

@ -499,7 +499,7 @@
return this._popoverMenuTemplate(data); return this._popoverMenuTemplate(data);
}, },
showNoteForm(event) { showNoteForm: function(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
var $element = $(event.target); var $element = $(event.target);
@ -512,7 +512,7 @@
$form.find('textarea').focus(); $form.find('textarea').focus();
}, },
deleteNote(event) { deleteNote: function(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
var self = this; var self = this;
@ -531,7 +531,7 @@
self.sendNote('', shareId, $menu); self.sendNote('', shareId, $menu);
}, },
updateNote(event) { updateNote: function(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
var self = this; var self = this;
@ -550,7 +550,7 @@
}, },
sendNote(note, shareId, $menu) { sendNote: function(note, shareId, $menu) {
var $form = $menu.next('li.share-note-form'); var $form = $menu.next('li.share-note-form');
var $submit = $form.find('input.share-note-submit'); var $submit = $form.find('input.share-note-submit');
var $error = $form.find('input.share-note-error'); var $error = $form.find('input.share-note-error');