From c9f82be54c8c3c6d73ea28f4d33dcd369d6abcdd Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Wed, 23 Jul 2014 17:20:43 +0700 Subject: [PATCH] Fix tiny regression --- src/js/ripple/remote.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/ripple/remote.js b/src/js/ripple/remote.js index c5fd5cc7..290e6dba 100644 --- a/src/js/ripple/remote.js +++ b/src/js/ripple/remote.js @@ -1481,7 +1481,10 @@ Remote.prototype.requestTxHistory = function(start, callback) { Remote.prototype.requestBookOffers = function(gets, pays, taker, callback) { if (gets.hasOwnProperty('pays')) { var options = gets; - callback = pays; + // This would mutate the `lastArg` in `arguments` to be `null` and is + // redundant. Once upon a time, some awkward code was written f(g, null, + // null, cb) ... + // callback = pays; taker = options.taker; pays = options.pays; gets = options.gets;