mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
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:
@@ -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
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user