aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src/commentsmodifymenu.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/src/commentsmodifymenu.js')
-rw-r--r--apps/comments/src/commentsmodifymenu.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/comments/src/commentsmodifymenu.js b/apps/comments/src/commentsmodifymenu.js
index 340e71aa5fb..98ca7dc427e 100644
--- a/apps/comments/src/commentsmodifymenu.js
+++ b/apps/comments/src/commentsmodifymenu.js
@@ -31,7 +31,7 @@
iconClass: 'icon-delete',
},
],
- initialize: function() {
+ initialize() {
},
events: {
@@ -43,7 +43,7 @@
*
* @param {Object} event event object
*/
- _onClickAction: function(event) {
+ _onClickAction(event) {
let $target = $(event.currentTarget)
if (!$target.hasClass('menuitem')) {
$target = $target.closest('.menuitem')
@@ -57,7 +57,7 @@
/**
* Renders the menu with the currently set items
*/
- render: function() {
+ render() {
this.$el.html(OCA.Comments.Templates['commentsmodifymenu']({
items: this._scopes,
}))
@@ -67,7 +67,7 @@
* Displays the menu
* @param {Event} context the click event
*/
- show: function(context) {
+ show(context) {
this._context = context
for (const i in this._scopes) {