mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-26 15:15:49 +00:00
Merge pull request #311 from vhpoet/patch-4
[FIX] Amount: clone in ratio_human, product_human
This commit is contained in:
@@ -197,9 +197,7 @@ Amount.prototype.divide = function(divisor) {
|
|||||||
Amount.prototype.ratio_human = function(denominator, opts) {
|
Amount.prototype.ratio_human = function(denominator, opts) {
|
||||||
opts = extend({ }, opts);
|
opts = extend({ }, opts);
|
||||||
|
|
||||||
/*eslint-disable consistent-this */
|
var numerator = this.clone();
|
||||||
var numerator = this;
|
|
||||||
/*eslint-enable consistent-this */
|
|
||||||
|
|
||||||
denominator = Amount.from_json(denominator);
|
denominator = Amount.from_json(denominator);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user