From 4f5ed1e41fe3ae01fea941f688aa2abcbfdfa493 Mon Sep 17 00:00:00 2001 From: dabeng Date: Tue, 4 Jul 2017 10:57:54 +0800 Subject: [PATCH] fix(events): trigger init event on orgchart div --- dist/js/jquery.orgchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/jquery.orgchart.js b/dist/js/jquery.orgchart.js index 09df8670..276db6fb 100644 --- a/dist/js/jquery.orgchart.js +++ b/dist/js/jquery.orgchart.js @@ -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; } }