Răsfoiți Sursa

Improved state changes.

Maciej Bukowski 6 ani în urmă
părinte
comite
f6621ce746
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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';
 			}
 		} );