Explorar o código

Hide style converter singleton from the watchdog.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
20cfa59ddc
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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
+		} );
 	}
 
 	/**