always have the empty fallback function

This commit is contained in:
Niels Lyngsø
2020-05-01 13:18:08 +02:00
parent ef56d9cbe3
commit 3e65d21b67
@@ -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;
@@ -32,8 +32,6 @@
requestUpdate();
}
});
} else {
unbindLanguageWatcher = function() {}
}
unbindSegmentWatcher = $scope.$watch(function () {