From 3e65d21b67a44852165757309eae138ea241f9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 1 May 2020 13:18:08 +0200 Subject: [PATCH] always have the empty fallback function --- .../src/views/content/apps/content/content.controller.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js index bbe09e1e14..66747a8697 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js @@ -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 () {