|
|
@@ -103,6 +103,12 @@ export default class DataController {
|
|
|
this.upcastDispatcher.on( 'documentFragment', convertToModelFragment(), { priority: 'lowest' } );
|
|
|
|
|
|
this.decorate( 'init' );
|
|
|
+
|
|
|
+ // Fire `ready` event when initialisation has completed. Such low level listener gives possibility
|
|
|
+ // to plug into initialisation pipeline without interrupting the initialisation flow.
|
|
|
+ this.on( 'init', () => {
|
|
|
+ this.fire( 'ready' );
|
|
|
+ }, { priority: 'lowest' } );
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -373,6 +379,12 @@ export default class DataController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Event fired once data initialisation has finished.
|
|
|
+ *
|
|
|
+ * @event ready
|
|
|
+ */
|
|
|
+
|
|
|
+ /**
|
|
|
* Event fired by decorated {@link #init} method.
|
|
|
* See {@link module:utils/observablemixin~ObservableMixin.decorate} for more information and samples.
|
|
|
*
|