mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
Use ES6 arrow functions instead.
This commit is contained in:
@ -65,7 +65,7 @@ export default Ember.Controller.extend({
|
||||
init() {
|
||||
this._super();
|
||||
|
||||
addPopupMenuOptionsCallback(function() {
|
||||
addPopupMenuOptionsCallback(() => {
|
||||
return {
|
||||
action: 'toggleWhisper',
|
||||
icon: 'eye-slash',
|
||||
|
@ -231,7 +231,7 @@ class PluginApi {
|
||||
* Example:
|
||||
*
|
||||
* ```
|
||||
* api.addToolbarPopupMenuOptionsCallback(function() {
|
||||
* api.addToolbarPopupMenuOptionsCallback(() => {
|
||||
* return {
|
||||
* action: 'toggleWhisper',
|
||||
* icon: 'eye-slash',
|
||||
|
Reference in New Issue
Block a user