Skip to content

Commit a1b1eb0

Browse files
committed
Merge branch 'release/4.0.3'
2 parents 5072945 + be78517 commit a1b1eb0

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

dist/angular-fusioncharts.js

+6
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-fusioncharts",
3-
"version": "4.0.2",
3+
"version": "4.0.3",
44
"description": "Angular plugin for FusionCharts",
55
"main": "dist/angular-fusioncharts.js",
66
"repository": {

src/angular-fusioncharts.js

+6
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
}]);

0 commit comments

Comments
 (0)