diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6 index bac746b3b..a52120b22 100644 --- a/app/assets/javascripts/discourse/controllers/composer.js.es6 +++ b/app/assets/javascripts/discourse/controllers/composer.js.es6 @@ -65,7 +65,7 @@ export default Ember.Controller.extend({ init() { this._super(); - addPopupMenuOptionsCallback(function() { + addPopupMenuOptionsCallback(() => { return { action: 'toggleWhisper', icon: 'eye-slash', diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 index c97573fb4..1ccc1c067 100644 --- a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 +++ b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 @@ -231,7 +231,7 @@ class PluginApi { * Example: * * ``` - * api.addToolbarPopupMenuOptionsCallback(function() { + * api.addToolbarPopupMenuOptionsCallback(() => { * return { * action: 'toggleWhisper', * icon: 'eye-slash',