Sfoglia il codice sorgente

Renamed `usingOperations` to `usingOperation` in docs.

Piotr Jasiun 7 anni fa
parent
commit
99d1d59e0a

+ 1 - 1
packages/ckeditor5-engine/src/model/markercollection.js

@@ -258,7 +258,7 @@ mix( MarkerCollection, EmitterMixin );
  * and removed by {@link module:engine/model/writer~Writer#removeMarker} methods.
  *
  *		model.change( ( writer ) => {
- * 			const marker = writer.setMarker( name, range, { usingOperations: true } );
+ * 			const marker = writer.setMarker( name, range, { usingOperation: true } );
  *
  * 			// ...
  *

+ 3 - 3
packages/ckeditor5-engine/src/model/writer.js

@@ -778,7 +778,7 @@ export default class Writer {
 	 *
 	 * Update marker using operation:
 	 *
-	 * 		setMarker( marker, range, { usingOperations: true } );
+	 * 		setMarker( marker, range, { usingOperation: true } );
 	 *
 	 * Create/update marker directly base on marker's name:
 	 *
@@ -786,7 +786,7 @@ export default class Writer {
 	 *
 	 * Create marker with a unique id using operation:
 	 *
-	 * 		setMarker( range, { usingOperations: true } );
+	 * 		setMarker( range, { usingOperation: true } );
 	 *
 	 * Create marker directly with a unique name:
 	 *
@@ -794,7 +794,7 @@ export default class Writer {
 	 *
 	 * Change marker's option (start using operations to manage it):
 	 *
-	 * 		setMarker( marker, { usingOperations: true } );
+	 * 		setMarker( marker, { usingOperation: true } );
 	 *
 	 * Note: For efficiency reasons, it's best to create and keep as little markers as possible.
 	 *

+ 2 - 2
packages/ckeditor5-engine/tests/model/writer.js

@@ -2040,7 +2040,7 @@ describe( 'Writer', () => {
 			expect( marker.name ).to.be.a( 'string' );
 		} );
 
-		it( 'should create a unique id if the first param is type of range when usingOperations is set to true', () => {
+		it( 'should create a unique id if the first param is type of range when usingOperation is set to true', () => {
 			const spy = sinon.spy();
 			model.on( 'applyOperation', spy );
 
@@ -2050,7 +2050,7 @@ describe( 'Writer', () => {
 			expect( spy.calledOnce ).to.be.true;
 		} );
 
-		it( 'should use operations when having set usingOperations to true', () => {
+		it( 'should use operations when having set usingOperation to true', () => {
 			const spy = sinon.spy();
 
 			model.on( 'applyOperation', spy );