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() { init() {
this._super(); this._super();
addPopupMenuOptionsCallback(function() { addPopupMenuOptionsCallback(() => {
return { return {
action: 'toggleWhisper', action: 'toggleWhisper',
icon: 'eye-slash', icon: 'eye-slash',

View file

@ -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',