From 1168bf82b899d82802c160d97cacc3a58d6dff81 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Mon, 28 Apr 2014 11:32:02 -0300 Subject: [PATCH] obj syntax --- js/models/core/WalletFactory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/models/core/WalletFactory.js b/js/models/core/WalletFactory.js index 5cedd56db..5460907df 100644 --- a/js/models/core/WalletFactory.js +++ b/js/models/core/WalletFactory.js @@ -53,9 +53,9 @@ WalletFactory.prototype._checkRead = function(walletId) { WalletFactory.prototype.fromObj = function(obj) { var opts = obj.opts; - opts['publicKeyRing'] = new PublicKeyRing.fromObj(obj.publicKeyRing); - opts['txProposals'] = new TxProposals.fromObj(obj.txProposals); - opts['privateKey'] = new PrivateKey.fromObj(obj.privateKey); + opts.publicKeyRing = new PublicKeyRing.fromObj(obj.publicKeyRing); + opts.txProposals = new TxProposals.fromObj(obj.txProposals); + opts.privateKey = new PrivateKey.fromObj(obj.privateKey); opts.storage = this.storage; opts.network = this.network; opts.blockchain = this.blockchain;