From ed018282c40e87a2c5da6f35bef7e497b2445105 Mon Sep 17 00:00:00 2001 From: Geert Weening Date: Thu, 6 Nov 2014 22:58:04 -0800 Subject: [PATCH] [TASK] remove clone in favor of copy and update see 'object' case in `parse_json` --- src/js/ripple/currency.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/js/ripple/currency.js b/src/js/ripple/currency.js index be94341c..cdcc1fab 100644 --- a/src/js/ripple/currency.js +++ b/src/js/ripple/currency.js @@ -62,10 +62,6 @@ Currency.from_human = function(j, opts) { // this._value = NaN on error. Currency.prototype.parse_json = function(j, shouldInterpretXrpAsIou) { - if (j instanceof Currency) { - return j.clone(); - } - this._value = NaN; switch (typeof j) {