8
0
Эх сурвалжийг харах

Hide style converter singleton from the watchdog.

Maciej Gołaszewski 6 жил өмнө
parent
commit
20cfa59ddc

+ 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
+		} );
 	}
 
 	/**