Skip to content

Commit bd2f367

Browse files
committed
Built files commited for memory leak fix
1 parent 3c57567 commit bd2f367

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dist/angular-fusioncharts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,12 @@
474474

475475
createFCChart();
476476

477+
scope.$on('$destroy', function () {
478+
// on destroy free used resources to avoid memory leaks
479+
if (chart && chart.dispose) {
480+
chart.dispose();
481+
}
482+
});
477483
}
478484
};
479485
}]);

dist/angular-fusioncharts.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)