Skip to content

Commit

Permalink
Added new_child event
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Overdijk committed Dec 21, 2015
1 parent b2cf3dd commit 9329042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/PrioritisedArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9329042

Please sign in to comment.