Skip to content

Commit

Permalink
Emit "mount" event after top level patching
Browse files Browse the repository at this point in the history
  • Loading branch information
dfilatov committed Jun 15, 2016
1 parent 86f31fc commit 15382e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/mounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ function mount(domNode, node, cb, cbCtx, syncMode) {
if(mountedNodes[domNodeId] && mountedNodes[domNodeId].id === mountId) {
mounted.tree.patch(node);
callCb(cb, cbCtx);
if(process.env.NODE_ENV !== 'production') {
globalHook.emit('mount', mounted.tree);
}
}
};

Expand Down

0 comments on commit 15382e0

Please sign in to comment.