Explorar el Código

Improved state changes.

Maciej Bukowski hace 6 años
padre
commit
f6621ce746
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-watchdog/src/contextwatchdog.js

+ 1 - 1
packages/ckeditor5-watchdog/src/contextwatchdog.js

@@ -82,7 +82,7 @@ export default class ContextWatchdog extends Watchdog {
 		this._destructor = context => context.destroy();
 
 		this._actionQueue.onEmpty( () => {
-			if ( this.state !== 'destroyed' ) {
+			if ( this.state === 'initializing' ) {
 				this.state = 'ready';
 			}
 		} );