mirror of
https://forge.murkfall.net/bluesaxman/blue.js.git
synced 2026-03-13 09:34:20 -06:00
Minor vif to boundValue.modValue so it returns int instead of array for remainder
This commit is contained in:
@@ -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};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user