Skip to content

Commit

Permalink
fix(events): trigger init event on orgchart div
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng committed Jul 4, 2017
1 parent 24c3d76 commit 4f5ed1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/jquery.orgchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
if (mutations[i].addedNodes[j].classList.contains('orgchart')) {
if (opts.initCompleted && typeof opts.initCompleted === 'function') {
opts.initCompleted($chart);
$chartContainer.triggerHandler({ 'type': 'init.orgchart', 'chart': $chart });
$chart.triggerHandler({ 'type': 'init.orgchart' });
break initTime;
}
}
Expand Down

0 comments on commit 4f5ed1e

Please sign in to comment.