parent
9d566f6ab7
commit
26b7db863f
@ -1,21 +0,0 @@ |
|||||||
'use strict' |
|
||||||
var Slider = require('./Slider') |
|
||||||
var utils = require('../helpers/util.js') |
|
||||||
|
|
||||||
class SoliditySlider extends Slider { |
|
||||||
constructor (_traceManager) { |
|
||||||
super(_traceManager) |
|
||||||
this.reducedTraceBySourceLocation |
|
||||||
} |
|
||||||
setValue (_value) { |
|
||||||
if (this.reducedTraceBySourceLocation) { |
|
||||||
super.setValue(utils.findLowerBound(_value, this.reducedTraceBySourceLocation)) |
|
||||||
} |
|
||||||
} |
|
||||||
setReducedTrace (_reducedTraceBySourceLocation) { |
|
||||||
super.init(_reducedTraceBySourceLocation.length) |
|
||||||
this.reducedTraceBySourceLocation = _reducedTraceBySourceLocation |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
module.exports = SoliditySlider |
|
Loading…
Reference in new issue