From 932904245b0e8be2dbed99cdb2ac223d647ff5cd Mon Sep 17 00:00:00 2001 From: Manuel Overdijk Date: Mon, 21 Dec 2015 12:15:36 +0100 Subject: [PATCH] Added new_child event --- src/core/PrioritisedArray.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/PrioritisedArray.js b/src/core/PrioritisedArray.js index a7fb20a..4053c9d 100644 --- a/src/core/PrioritisedArray.js +++ b/src/core/PrioritisedArray.js @@ -164,6 +164,10 @@ export class PrioritisedArray extends Array { } this._eventEmitter.emit('child_added', model, prevSiblingId); + + if(this._dataSource.ready === true){ + this._eventEmitter.emit('new_child', model, prevSiblingId); + } } } else if (model instanceof Object) { /* Let's try to parse the object using property reflection */