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.
This commit is contained in:
m-khan-glyptodon
2019-06-25 11:56:11 -07:00
parent 1818b6a7ee
commit 68e5779592

View File

@@ -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
};