Browse Source

var -> const

master
rozetko 6 years ago
parent
commit
1e977b7223
  1. 2
      src/panel/graph_panel/controllers/analytic_controller.ts
  2. 2
      src/panel/graph_panel/models/analytic_unit.ts

2
src/panel/graph_panel/controllers/analytic_controller.ts

@ -187,7 +187,7 @@ export class AnalyticController {
}
addLabelSegment(segment: Segment, deleted = false) {
var asegment = this.labelingUnit.addLabeledSegment(segment, deleted);
const asegment = this.labelingUnit.addLabeledSegment(segment, deleted);
this._labelingDataAddedSegments.addSegment(asegment);
}

2
src/panel/graph_panel/models/analytic_unit.ts

@ -81,7 +81,7 @@ export class AnalyticUnit {
}
addLabeledSegment(segment: Segment, deleted: boolean): AnalyticSegment {
var asegment = new AnalyticSegment(!deleted, segment.id, segment.from, segment.to, deleted);
const asegment = new AnalyticSegment(!deleted, segment.id, segment.from, segment.to, deleted);
this._segmentSet.addSegment(asegment);
return asegment;
}

Loading…
Cancel
Save