Skip to content

Commit

Permalink
always have the empty fallback function
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe committed May 1, 2020
1 parent ef56d9c commit 3e65d21
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// (i.e. variant.apps[contentApp].viewModel = variant)
//so instead since we already have access to the content, we can just get the variant directly by the index.

var unbindLanguageWatcher;
var unbindSegmentWatcher;
var unbindLanguageWatcher = function() {};
var unbindSegmentWatcher = function() {};
var timeout = null;

var vm = this;
Expand All @@ -32,8 +32,6 @@
requestUpdate();
}
});
} else {
unbindLanguageWatcher = function() {}
}

unbindSegmentWatcher = $scope.$watch(function () {
Expand Down

0 comments on commit 3e65d21

Please sign in to comment.