[TASK] remove clone in favor of copy and update

see 'object' case in `parse_json`
This commit is contained in:
Geert Weening
2014-11-06 22:58:04 -08:00
parent fbe015758c
commit ed018282c4

View File

@@ -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) {