mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -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() {
|
init() {
|
||||||
this._super();
|
this._super();
|
||||||
|
|
||||||
addPopupMenuOptionsCallback(function() {
|
addPopupMenuOptionsCallback(() => {
|
||||||
return {
|
return {
|
||||||
action: 'toggleWhisper',
|
action: 'toggleWhisper',
|
||||||
icon: 'eye-slash',
|
icon: 'eye-slash',
|
||||||
|
|
|
@ -231,7 +231,7 @@ class PluginApi {
|
||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* api.addToolbarPopupMenuOptionsCallback(function() {
|
* api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
* return {
|
* return {
|
||||||
* action: 'toggleWhisper',
|
* action: 'toggleWhisper',
|
||||||
* icon: 'eye-slash',
|
* icon: 'eye-slash',
|
||||||
|
|
Loading…
Reference in a new issue