From ca25b3199b09c5803ceec27f59fd1820d1ae3e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 28 May 2019 15:24:02 +0200 Subject: [PATCH] refactor to use area var --- .../src/views/propertyeditors/grid/grid.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js index 8c5bae56a7..ef53c293d5 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js @@ -134,17 +134,17 @@ angular.module("umbraco") (startingArea != area && area.maxItems != '' && area.maxItems > 0 && area.maxItems < area.controls.length + 1)) { $scope.$apply(function () { - event.target.getScope_HackForSortable().area.dropNotAllowed = true; + area.dropNotAllowed = true; }); ui.placeholder.hide(); cancelMove = true; } else { - if (event.target.getScope_HackForSortable().area.controls.length == 0) { + if (area.controls.length == 0) { $scope.$apply(function () { - event.target.getScope_HackForSortable().area.dropOnEmpty = true; + area.dropOnEmpty = true; }); ui.placeholder.hide(); } else {