Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fixed lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Feb 5, 2019
1 parent 9b10ae5 commit 30dd136
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
2 changes: 0 additions & 2 deletions tests/view/observer/focusobserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion tests/view/view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 30dd136

Please sign in to comment.