Use ES6 arrow functions instead.

This commit is contained in:
Guo Xiang Tan 2016-06-16 18:05:15 +08:00
parent 93715b5952
commit 2484ef93ed
No known key found for this signature in database
GPG key ID: 19C321C8952B0F72
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ export default Ember.Controller.extend({
init() {
this._super();
addPopupMenuOptionsCallback(function() {
addPopupMenuOptionsCallback(() => {
return {
action: 'toggleWhisper',
icon: 'eye-slash',

View file

@ -231,7 +231,7 @@ class PluginApi {
* Example:
*
* ```
* api.addToolbarPopupMenuOptionsCallback(function() {
* api.addToolbarPopupMenuOptionsCallback(() => {
* return {
* action: 'toggleWhisper',
* icon: 'eye-slash',