Maciej Bukowski преди 6 години
родител
ревизия
2ed9105d6b
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      packages/ckeditor5-watchdog/src/watchdog.js

+ 2 - 0
packages/ckeditor5-watchdog/src/watchdog.js

@@ -228,6 +228,8 @@ export default class Watchdog {
 
 		this._elementOrData = elementOrData;
 
+		// Clone config because it might be shared within multiple watchdog instances. Otherwise
+		// when an error occurs in one of these editors the watchdog will restart all of them.
 		this._config = cloneDeepWith( config, function leaveDOMReferences( value ) {
 			return isElement( value ) ? value : undefined;
 		} );