Fix eslint error

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-02-14 15:10:07 +01:00
parent b4353ce102
commit 9d0a7b3f57

View File

@@ -327,6 +327,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
// remove from cards // remove from cards
var cards = CardService.data; var cards = CardService.data;
for (var card in cards) { for (var card in cards) {
if (Object.prototype.hasOwnProperty.call(cards, card)) {
var labelsFromCard = cards[card].labels; var labelsFromCard = cards[card].labels;
labelsFromCard.forEach(function (labelFromCard, index) { labelsFromCard.forEach(function (labelFromCard, index) {
@@ -335,6 +336,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
} }
}); });
} }
}
}; };
$scope.labelCreate = function (label) { $scope.labelCreate = function (label) {
@@ -353,6 +355,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
// update labels in UI // update labels in UI
var cards = CardService.data; var cards = CardService.data;
for (var card in cards) { for (var card in cards) {
if (Object.prototype.hasOwnProperty.call(cards, card)) {
var labelsFromCard = cards[card].labels; var labelsFromCard = cards[card].labels;
labelsFromCard.forEach(function (labelFromCard, index) { labelsFromCard.forEach(function (labelFromCard, index) {
@@ -361,6 +364,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
} }
}); });
} }
}
}; };
$scope.aclAdd = function (sharee) { $scope.aclAdd = function (sharee) {