Explorar el Código

Added API docs.

Maciej Bukowski hace 6 años
padre
commit
2ed9105d6b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;
 		} );