From 9bab35937cbf6329efa6a91865900d6939dd5724 Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Thu, 5 Feb 2015 13:30:30 -0500 Subject: [PATCH] Fix cleanup of host-count-graph --- awx/ui/static/js/directives/host-count-graph.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/awx/ui/static/js/directives/host-count-graph.js b/awx/ui/static/js/directives/host-count-graph.js index bffb5f8c76..81675e780f 100644 --- a/awx/ui/static/js/directives/host-count-graph.js +++ b/awx/ui/static/js/directives/host-count-graph.js @@ -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);