Procházet zdrojové kódy

Hide style converter singleton from the watchdog.

Maciej Gołaszewski před 6 roky
rodič
revize
20cfa59ddc
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6 1
      packages/ckeditor5-engine/src/view/styles.js

+ 6 - 1
packages/ckeditor5-engine/src/view/styles.js

@@ -182,7 +182,12 @@ export default class Styles {
 		 */
 		this._styles = {};
 
-		this.converter = converter;
+		// This hides the converter from the watchdog.
+		Object.defineProperty( this, 'converter', {
+			value: converter,
+			enumerable: false,
+			writable: true
+		} );
 	}
 
 	/**