Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Do not try be cool using angular.forEach with this in the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Jul 29, 2015
1 parent a17c5bd commit 46e637e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ module HawkularMetrics {

public performOperationMulti(operationName: string, resourceList: any): any {
this.$log.info('performOperationMulti ', operationName, resourceList);
angular.forEach(resourceList, function(res, idx) {
var operation = {operationName: operationName, resourceId: res.id};
for (var i = 0; i < resourceList.length; i++) {
var operation = {operationName: operationName, resourceId: resourceList[i].id};
this.HawkularOps.performOperation(operation);
});
}
}
}

Expand Down

0 comments on commit 46e637e

Please sign in to comment.