소스 검색

Removed superfluous argument.

Piotrek Koszuliński 8 년 전
부모
커밋
bf89817773
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ckeditor5-image/src/imagestyle/imagestylecommand.js

+ 1 - 1
packages/ckeditor5-image/src/imagestyle/imagestylecommand.js

@@ -82,7 +82,7 @@ export default class ImageStyleCommand extends Command {
 			// Default style means that there is no `imageStyle` attribute in the model.
 			// https://github.com/ckeditor/ckeditor5-image/issues/147
 			if ( this.style.isDefault ) {
-				batch.removeAttribute( imageElement, 'imageStyle', this.style.name );
+				batch.removeAttribute( imageElement, 'imageStyle' );
 			} else {
 				batch.setAttribute( imageElement, 'imageStyle', this.style.name );
 			}