Fix cleanup of host-count-graph

This commit is contained in:
Joe Fiorini 2015-02-05 13:30:30 -05:00
parent f512cdf79d
commit 9bab35937c

View File

@ -28,14 +28,7 @@ angular.module('DashboardGraphs').
adjustGraphSize(license_graph, element);
}
angular.element($window).on('resize', function() {
if(!license_graph) {
return;
}
adjustGraphSize(license_graph, element);
});
angular.element($window).on('resize', onResize);
element.on('$destroy', function() {
angular.element($window).off('resize', onResize);