mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-930: Remove unnecessary $scope.$apply().
$q and $http promises, such as the promise returned by languageService.getLanguages(), will already implicitly $apply() when needed.
This commit is contained in:
@@ -40,9 +40,7 @@ angular.module('form').controller('languageFieldController', ['$scope', '$inject
|
||||
|
||||
// Retrieve defined languages
|
||||
languageService.getLanguages().then(function languagesRetrieved(languages) {
|
||||
$scope.$apply(function updateLanguageOptions() {
|
||||
$scope.languages = languages;
|
||||
});
|
||||
}, requestService.DIE);
|
||||
|
||||
// Interpret undefined/null as empty string
|
||||
|
Reference in New Issue
Block a user