From 68e577959213fa8fb4dc1b1c2cfad77b1a1d3be2 Mon Sep 17 00:00:00 2001 From: m-khan-glyptodon Date: Tue, 25 Jun 2019 11:56:11 -0700 Subject: [PATCH] GUACAMOLE-302: Make the binding of the guacFocus directive unidirectional. There is an unassignable expression in the form directive that was being assinged a value by the guacFocus directive. The part that deals with this assigning is removed since no part of the app is relying upon this feature. --- .../webapp/app/element/directives/guacFocus.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/guacamole/src/main/webapp/app/element/directives/guacFocus.js b/guacamole/src/main/webapp/app/element/directives/guacFocus.js index ce6093c04..71e745396 100644 --- a/guacamole/src/main/webapp/app/element/directives/guacFocus.js +++ b/guacamole/src/main/webapp/app/element/directives/guacFocus.js @@ -52,20 +52,6 @@ angular.module('element').directive('guacFocus', ['$parse', function guacFocus($ }); }); - // Set focus flag when focus is received - element.addEventListener('focus', function focusReceived() { - $scope.$evalAsync(function setGuacFocusAsync() { - guacFocus.assign($scope, true); - }); - }); - - // Unset focus flag when focus is lost - element.addEventListener('blur', function focusLost() { - $scope.$evalAsync(function unsetGuacFocusAsync() { - guacFocus.assign($scope, false); - }); - }); - } // end guacFocus link function };