[Account] Fixed AccountFromResult() function.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 12 Feb 2015 14:36:13 +0000 (15:36 +0100)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 12 Feb 2015 14:36:13 +0000 (15:36 +0100)
Change-Id: I303d407825a23a60bcf2ceb0ec0a9e0be120d541

src/account/account_api.js

index 5b0f492281eca2f9fa0ddd75b0606dfb709f8ad5..e662f881e9db0237d8a3120ae35e7d68b2af2881 100644 (file)
@@ -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;
 }