Skip to content

Commit

Permalink
Added explicit type to var "r" (fixing a tsc error)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinier Sterkenburg committed Sep 22, 2015
1 parent 26df572 commit 258e4d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion csComp/directives/Widgets/Indicators/Indicators-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module Indicators {

public updateVisual(i: indicator) {
if (!i.inputs) i.inputs = {};
var r = {};
var r: { [key: string]: any } = {};
for (var key in this.indicatorVisuals[i.visual].input) {
if (i.inputs && i.inputs.hasOwnProperty(key)) {
r[key] = i.inputs[key];
Expand Down
10 changes: 0 additions & 10 deletions csComp/directives/Widgets/Indicators/IndicatorsCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ module Indicators {
this._toggleUpdate = true;
this.indicatorWidth = 200;
}


}



export interface IIndicatorsScope extends ng.IScope {
vm: IndicatorsCtrl;
data: indicatorData;
Expand Down Expand Up @@ -111,8 +107,6 @@ module Indicators {
if (typeof $scope.data.indicators !== 'undefined') {
$scope.data.indicators.forEach((i: indicator) => {
i.id = "circ-" + csComp.Helpers.getGuid();


});
}
$timeout(() => this.checkLayers());
Expand All @@ -137,11 +131,7 @@ module Indicators {
if (i._sensorSet.propertyType && i._sensorSet.propertyType.legend) {
i.color = csComp.Helpers.getColorFromLegend(i._sensorSet.activeValue, i._sensorSet.propertyType.legend);
}

});



}


Expand Down

0 comments on commit 258e4d5

Please sign in to comment.