JS scoping sucks sometimes
This commit is contained in:
parent
afa59da8d6
commit
70d5200858
1 changed files with 5 additions and 3 deletions
|
@ -35,9 +35,11 @@ angular.module('quay').directive('teamsManager', function () {
|
||||||
if (!$scope.organization.teams.hasOwnProperty(name) || $scope.members[name]) { continue; }
|
if (!$scope.organization.teams.hasOwnProperty(name) || $scope.members[name]) { continue; }
|
||||||
|
|
||||||
// Load fully async to prevent it from blocking the UI.
|
// Load fully async to prevent it from blocking the UI.
|
||||||
$timeout(function() {
|
(function(teamname) {
|
||||||
loadMembersOfTeam(name);
|
$timeout(function() {
|
||||||
}, 1);
|
loadMembersOfTeam(teamname);
|
||||||
|
}, 1);
|
||||||
|
})(name);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue