Explorar o código

Improved state changes.

Maciej Bukowski %!s(int64=6) %!d(string=hai) anos
pai
achega
f6621ce746
Modificáronse 1 ficheiros con 1 adicións e 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';
 			}
 		} );