updates to job results based on feedback from pr

This commit is contained in:
John Mitchell 2017-01-11 13:07:19 -05:00
parent 0befcced87
commit 5ddd918977
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default [ 'templateUrl', '$timeout', '$location', '$anchorScroll',
$(window).off("scroll", scrollWatcher);
$(".JobResultsStdOut-stdoutContainer").off('scroll',
scrollWatcher);
toDestroy.forEach(v => v());
toDestroy.forEach(closureFunc => closureFunc());
});
scope.stdoutContainerAvailable.resolve("container available");

View File

@ -508,6 +508,7 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
}));
$scope.$on('$destroy', function(){
$( ".JobResultsStdOut-aLineOfStdOut" ).remove();
cancelRequests = true;
eventQueue.initialize();
Object.keys($scope.events)
@ -517,6 +518,6 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
});
$scope.events = {};
clearInterval(elapsedInterval);
toDestroy.forEach(v => v());
toDestroy.forEach(closureFunc => closureFunc());
});
}];