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

Fix: The order of private fields in ImageStyleCommand was wrong.

Maciej Gołaszewski 7 лет назад
Родитель
Сommit
b582df14c1
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      packages/ckeditor5-image/src/imagestyle/imagestylecommand.js

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

@@ -25,6 +25,14 @@ export default class ImageStyleCommand extends Command {
 	constructor( editor, styles ) {
 		super( editor );
 
+		/**
+		 * Cached name of a default style if present. If there is no default style it defaults to false.
+		 *
+		 * @type {Boolean|String}
+		 * @private
+		 */
+		this._defaultStyle = false;
+
 		/**
 		 * A style handled by this command.
 		 *
@@ -40,14 +48,6 @@ export default class ImageStyleCommand extends Command {
 
 			return styles;
 		}, {} );
-
-		/**
-		 * Cached name of a default style if present. If there is no default style it defaults to false.
-		 *
-		 * @type {Boolean|String}
-		 * @private
-		 */
-		this._defaultStyle = false;
 	}
 
 	/**