refactoring: #10130

This commit is contained in:
Torkel Ödegaard
2017-12-08 12:17:09 +01:00
parent 974d4d9739
commit e03abde778
3 changed files with 24 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
var legendScrollbar;
scope.$on("$destroy", function() {
if (!legendScrollbar) {
if (legendScrollbar) {
legendScrollbar.destroy();
}
});