mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Use ES6 arrow functions instead.
This commit is contained in:
parent
93715b5952
commit
2484ef93ed
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue