add toDestroy to watch statement

This commit is contained in:
John Mitchell
2017-02-17 16:48:44 -05:00
parent c52796da61
commit 329156a9eb

View File

@@ -443,11 +443,11 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
$scope.isOld = 0;
$scope.showLegacyJobErrorMessage = false;
$scope.$watch('isOld', function (val) {
toDestroy.push($scope.$watch('isOld', function (val) {
if (val >= 2) {
$scope.showLegacyJobErrorMessage = true;
}
});
}));
// get header and recap lines
var skeletonPlayCount = 0;