Skip to content

Commit

Permalink
Blocks: Use method shorthand instead of arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 2, 2018
1 parent c294e98 commit 6f4a136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,10 +906,10 @@ const RichTextContainer = compose( [
// Ensures that only one RichText component can be focused.
return {
isSelected: context.isSelected && context.focusedElement === ownProps.instanceId,
onSetup: () => {
onSetup() {
context.initFocusedElement( ownProps.instanceId );
},
onFocus: () => {
onFocus() {
context.setFocusedElement( ownProps.instanceId );
},
};
Expand Down

0 comments on commit 6f4a136

Please sign in to comment.