From 76e2f2f38013cd3a5f2fe65315ab925afee9c494 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Tue, 2 Apr 2019 09:15:30 +0200 Subject: [PATCH] #4011 - Not using a unnecessary function call in views --- .../src/views/propertyeditors/grid/editors/embed.controller.js | 3 --- .../src/views/propertyeditors/grid/editors/embed.html | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.controller.js index 8e9ea06a84fe..a45e569897a2 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.controller.js @@ -17,9 +17,6 @@ angular.module("umbraco") $scope.embedHtml = getEmbed(); }, false); - $scope.hasEmbed = function() { - return $scope.control.value !== null; - } $scope.setEmbed = function() { var embed = { submit: function(model) { diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.html index 0178c3b3ec30..8cfa71f08288 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/embed.html @@ -1,6 +1,6 @@
-
+
Click to embed