Fix show() to show sign, fix off()
This commit is contained in:
parent
ef877a40ca
commit
37a240ee2d
2 changed files with 24 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ Fraction.prototype.min = function(other) {
|
|||
}
|
||||
|
||||
Fraction.prototype.show = function () {
|
||||
return this.n + "/" + this.d
|
||||
return (this.s * this.n) + "/" + this.d
|
||||
}
|
||||
|
||||
Fraction.prototype.or = function(other) {
|
||||
|
|
@ -574,7 +574,7 @@ class Pattern {
|
|||
}
|
||||
|
||||
off(time_pat, func) {
|
||||
return stack([this, func(this._early(time_pat))])
|
||||
return stack(this, func(this.late(time_pat)))
|
||||
}
|
||||
|
||||
every(n, func) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue