more refactor
This commit is contained in:
parent
9933f4f9ff
commit
d612678682
1 changed files with 36 additions and 52 deletions
|
|
@ -93,7 +93,7 @@ export class DoubleSliderComponent {
|
|||
}
|
||||
|
||||
private emitValue() {
|
||||
const range = {
|
||||
this.range.emit({
|
||||
from:
|
||||
this.oneValue < this.otherValue
|
||||
? this.values[this.indexFromValue(this.oneValue)]
|
||||
|
|
@ -102,7 +102,6 @@ export class DoubleSliderComponent {
|
|||
this.oneValue < this.otherValue
|
||||
? this.values[this.indexFromValue(this.otherValue)]
|
||||
: this.values[this.indexFromValue(this.oneValue)]
|
||||
};
|
||||
this.range.emit(range);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue