8
0
Просмотр исходного кода

Minor fixes and improvements after the refactoring.

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
e3b34ce2a7

+ 1 - 1
packages/ckeditor5-ui/src/view.js

@@ -295,7 +295,7 @@ export default class View {
 	}
 
 	/**
-f	 * Destroys the view instance and child views located in {@link #_viewCollections}.
+	 * Destroys the view instance and child views located in {@link #_viewCollections}.
 	 */
 	destroy() {
 		this.stopListening();

+ 2 - 2
packages/ckeditor5-ui/tests/toolbar/contextual/contextualtoolbar.js

@@ -295,8 +295,8 @@ describe( 'ContextualToolbar', () => {
 		beforeEach( () => {
 			setData( editor.document, '<paragraph>[bar]</paragraph>' );
 
-			showPanelSpy = sandbox.stub( contextualToolbar, '_showPanel', () => {} );
-			hidePanelSpy = sandbox.stub( contextualToolbar, '_hidePanel', () => {} );
+			showPanelSpy = sandbox.spy( contextualToolbar, '_showPanel' );
+			hidePanelSpy = sandbox.spy( contextualToolbar, '_hidePanel' );
 		} );
 
 		it( 'should open when selection stops changing', () => {