Skip to content

Commit

Permalink
Updated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 2, 2013
1 parent 9591a5f commit 9e3ac8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@

// Handle startup focus.
this.on( 'instanceReady', function( event ) {
// #10103: Update commands which were added after first 'mode' event and before
// instanceReady. Commands added later will be instantly updated.
updateCommands.call( this, event );
// First 'mode' event is fired before this 'instanceReady',
// so to avoid updating commands twice, add this listener here.

this.config.startupFocus && this.focus();
} );
Expand Down

0 comments on commit 9e3ac8e

Please sign in to comment.