Browse Source

Refactored uses of EmitterMixin.

Oskar Wrobel 9 years ago
parent
commit
5d3625fb7f

+ 1 - 1
packages/ckeditor5-typing/src/input.js

@@ -39,7 +39,7 @@ export default class Input extends Feature {
 
 		this.listenTo( editingView, 'keydown', ( evt, data ) => {
 			this._handleKeydown( data );
-		}, 'lowest' );
+		}, { priority: 'lowest' } );
 
 		this.listenTo( editingView, 'mutations', ( evt, mutations ) => {
 			this._handleMutations( mutations );

+ 1 - 1
packages/ckeditor5-typing/tests/input.js

@@ -218,7 +218,7 @@ describe( 'Input feature', () => {
 						node: viewRoot.getChild( 0 ).getChild( 0 )
 					}
 				] );
-			}, 'lowest' );
+			}, { priority: 'lowest' } );
 
 			view.fire( 'keydown', { keyCode: getCode( 'y' ) } );