From: Pawel Andruszkiewicz
Date: Thu, 12 Feb 2015 14:36:13 +0000 (+0100)
Subject: [Account] Fixed AccountFromResult() function.
X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~454
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dee3afe60ef805dd05297b68cdf34f0942346dd;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Account] Fixed AccountFromResult() function.
Change-Id: I303d407825a23a60bcf2ceb0ec0a9e0be120d541
---
diff --git a/src/account/account_api.js b/src/account/account_api.js
index 5b0f4922..e662f881 100644
--- a/src/account/account_api.js
+++ b/src/account/account_api.js
@@ -137,8 +137,7 @@ Account.prototype.getExtendedData = function() {
function AccountFromResult(result) {
var provider = new AccountProvider(result.provider);
- var account_init_dict = { userName: result.userName, iconUri: result.iconUri };
- var account = new Account(provider, account_init_dict);
+ var account = new Account(provider, result.accountInitDict);
account.id = new InternalValues_({ id: result.id });
return account;
}