Explorar o código

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

Maciej Gołaszewski %!s(int64=7) %!d(string=hai) anos
pai
achega
b582df14c1

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

@@ -25,6 +25,14 @@ export default class ImageStyleCommand extends Command {
 	constructor( editor, styles ) {
 	constructor( editor, styles ) {
 		super( editor );
 		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.
 		 * A style handled by this command.
 		 *
 		 *
@@ -40,14 +48,6 @@ export default class ImageStyleCommand extends Command {
 
 
 			return styles;
 			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;
 	}
 	}
 
 
 	/**
 	/**