Explorar o código

Fixed lint issues.

Maciej Bukowski %!s(int64=7) %!d(string=hai) anos
pai
achega
6d1fa2f83c

+ 4 - 3
packages/ckeditor5-engine/src/view/view.js

@@ -330,9 +330,10 @@ export default class View {
 
 	/**
 	 * The `change()` method is the primary way of changing the view. You should use it to modify any node in the view tree.
-	 * It makes sure that after all changes are made the view is rendered to the DOM (assuming that the view will be changed inside the callback).
-	 * It prevents situations when the DOM is updated when the view state is not yet correct.It allows to nest calls one inside another and still
-	 * performs a single rendering after all those changes are made. It also returns the return value of its callback.
+	 * It makes sure that after all changes are made the view is rendered to the DOM (assuming that the view will be changed
+	 * inside the callback). It prevents situations when the DOM is updated when the view state is not yet correct.It allows
+	 * to nest calls one inside another and still performs a single rendering after all those changes are made.
+	 * It also returns the return value of its callback.
 	 *
 	 *		const text = view.change( writer => {
 	 *			const newText = writer.createText( 'foo' );

+ 0 - 2
packages/ckeditor5-engine/tests/view/observer/focusobserver.js

@@ -169,8 +169,6 @@ describe( 'FocusObserver', () => {
 			setData( view, '<div contenteditable="true">foo bar</div>' );
 			view.render();
 
-			console.log( 1 );
-
 			viewDocument.on( 'selectionChange', selectionChangeSpy );
 			view.on( 'render', renderSpy );
 

+ 1 - 1
packages/ckeditor5-engine/tests/view/view/view.js

@@ -411,7 +411,7 @@ describe( 'view', () => {
 
 			sinon.assert.calledOnce( renderSpy );
 			sinon.assert.calledOnce( layoutChangedSpy );
-		} )
+		} );
 
 		it( 'should fire `render` and `layoutChanged` if there is some buffered change', () => {
 			const renderSpy = sinon.spy();