8
0
Maciej Bukowski 6 лет назад
Родитель
Сommit
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;
 		} );