From 39160d3025a1d9e327f48b034c083808663e2481 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 29 Mar 2016 11:12:07 -0700 Subject: Remove argument destructuring --- app/scripts/lib/idStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/scripts/lib') diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index f0e566e5e..acd34074b 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -268,7 +268,9 @@ IdentityStore.prototype._createFirstWallet = function(entropy, derivedKey) { return keyStore } -function IdManagement( opts = { keyStore: null, derivedKey: null, hdPathString: null } ) { +function IdManagement(opts) { + if (!opts) opts = {} + this.keyStore = opts.keyStore this.derivedKey = opts.derivedKey this.hdPathString = opts.hdPathString -- cgit v1.2.3