Minor vif to boundValue.modValue so it returns int instead of array for remainder
This commit is contained in:
parent
a45b364a80
commit
975daca5ca
@ -228,7 +228,7 @@ class boundValue {
|
|||||||
|
|
||||||
modValue(mod=0) {
|
modValue(mod=0) {
|
||||||
mod = !isNaN(mod) ? mod : 0;
|
mod = !isNaN(mod) ? mod : 0;
|
||||||
var outOfBoundsBy = this.bounds.outOfBoundsBy([this.value+mod]);
|
var outOfBoundsBy = this.bounds.outOfBoundsBy([this.value+mod])[0];
|
||||||
return {newValue:this.setValue(this.value+mod),remainder:outOfBoundsBy};
|
return {newValue:this.setValue(this.value+mod),remainder:outOfBoundsBy};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user