Browse Source

Docs improvements.

Maciej Bukowski 7 years ago
parent
commit
ffd7f4e9db

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

@@ -407,7 +407,7 @@ export default class Document {
 	 *			console.log( 'The data has changed!' );
 	 *		} );
 	 *
-	 * If you would like to listen to all changes, then check the
+	 * If you would like to listen to all document's changes, then look at the
 	 * {@link module:engine/model/document~Document#event:change change} event.
 	 *
 	 * @event change:data

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

@@ -47,7 +47,7 @@ describe( 'Document', () => {
 				baseVersion: 0,
 				isDocumentOperation: true,
 				_execute: sinon.stub().returns( data ),
-				_validate: () => { }
+				_validate: () => {}
 			};
 
 			delta = new Delta();
@@ -89,7 +89,7 @@ describe( 'Document', () => {
 			const operation = {
 				baseVersion: 1,
 				isDocumentOperation: true,
-				_execute: () => { }
+				_execute: () => {}
 			};
 
 			expect(