Преглед изворни кода

Removed default 'normal' parameter.

Piotr Jasiun пре 9 година
родитељ
комит
4a02520087

+ 1 - 1
packages/ckeditor5-engine/src/editingcontroller.js

@@ -95,7 +95,7 @@ export default class EditingController {
 		}, 'low' );
 
 		// Convert view selection to model.
-		this._listenter.listenTo( this.view, 'selectionChange', convertSelectionChange( model, this.mapper ), 'normal' );
+		this._listenter.listenTo( this.view, 'selectionChange', convertSelectionChange( model, this.mapper ) );
 
 		// Attach default content converters.
 		this.modelToView.on( 'insert:$text', insertText(), 'lowest' );

+ 2 - 2
packages/ckeditor5-engine/src/model/composer/composer.js

@@ -25,8 +25,8 @@ export default class Composer {
 	 * Creates an instance of the composer.
 	 */
 	constructor() {
-		this.on( 'deleteContents', ( evt, data ) => deleteContents( data.batch, data.selection, data.options ), 'normal' );
-		this.on( 'modifySelection', ( evt, data ) => modifySelection( data.selection, data.options ), 'normal' );
+		this.on( 'deleteContents', ( evt, data ) => deleteContents( data.batch, data.selection, data.options ) );
+		this.on( 'modifySelection', ( evt, data ) => modifySelection( data.selection, data.options ) );
 	}
 
 	/**

+ 1 - 3
packages/ckeditor5-engine/src/model/liveposition.js

@@ -129,9 +129,7 @@ function bindWithDocument() {
 		'change',
 		( event, type, changes ) => {
 			transform.call( this, type, changes.range, changes.sourcePosition );
-		},
-		'normal',
-		this
+		}
 	);
 }
 

+ 1 - 3
packages/ckeditor5-engine/src/model/liverange.js

@@ -89,9 +89,7 @@ function bindWithDocument() {
 		'change',
 		( event, type, changes ) => {
 			transform.call( this, type, changes.range, changes.sourcePosition );
-		},
-		'normal',
-		this
+		}
 	);
 }
 

+ 1 - 1
packages/ckeditor5-engine/src/view/document.js

@@ -116,7 +116,7 @@ export default class Document {
 			this.disableObservers();
 			this.renderer.render();
 			this.enableObservers();
-		}, 'normal' );
+		} );
 	}
 
 	/**