mbouclas / loopback-ds-tree-mixin

Transform a loopback model into a tree using the Array of Ancestors pattern
MIT License
6 stars 4 forks source link

add before move and after move event #8

Closed Jcbobo closed 7 years ago

Jcbobo commented 7 years ago

before move and after move event added, Both event return the old parent id, the new parent id and the actual node.

the move.after event is emitted just before the newPath event, i kept them separate because logically have different meaning and in my opinion have both allow more flexibility (based on application needed)

Jcbobo commented 7 years ago

can you publish the merge on npm?

mbouclas commented 7 years ago

done