Skip to content

Commit

Permalink
fix issue with watcher #137
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jun 25, 2018
1 parent 3a7182f commit 59e41f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/resources/dist/js/main.uglified.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/resources/js/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@

// controller logic

$scope.ngModel = 0;
//$scope.ngModel = 0;

$scope.modal = {state: 1};

Expand All @@ -2519,8 +2519,7 @@
};

$scope.$watch(function() { return $scope.ngModel }, function(n, o) {

if (n == 0 || n == null || n == undefined || n == o) {
if (n == 0 || n == null || n == undefined) {
return null;
}

Expand Down Expand Up @@ -2649,7 +2648,7 @@

$scope.$watch(function() { return $scope.fileId }, function(n, o) {

if (n == o || n == 0 || n == null || n == undefined) {
if (n == 0 || n == null || n == undefined) {
return;
}

Expand Down

0 comments on commit 59e41f0

Please sign in to comment.