add setReducedTrace

pull/7/head
yann300 8 years ago
parent 446a6cc2d6
commit b5ae841757
  1. 14
      src/ui/SoliditySlider.js

@ -3,12 +3,18 @@ var Slider = require('./Slider')
var utils = require('../helpers/util.js')
class SoliditySlider extends Slider {
constructor (_traceManager, reducedTraceBySourceLocation) {
constructor (_traceManager) {
super(_traceManager)
this.reducedTraceBySourceLocation = reducedTraceBySourceLocation
this.reducedTraceBySourceLocation
}
setValue (value) {
super.setValue(utils.findLowerBoundValue(value, this.reducedTraceBySourceLocation))
setValue (_value) {
if (this.reducedTraceBySourceLocation) {
super.setValue(utils.findLowerBound(_value, this.reducedTraceBySourceLocation))
}
}
setReducedTrace (_reducedTraceBySourceLocation) {
super.init(_reducedTraceBySourceLocation.length)
this.reducedTraceBySourceLocation = _reducedTraceBySourceLocation
}
}

Loading…
Cancel
Save