aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyring-controller.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-22 11:40:30 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-22 11:40:58 +0800
commitced36eb20186b0f1bf0c744ac31a5b7804120065 (patch)
treeb36c37132abd4dee19e580436622cf25dee4046a /app/scripts/keyring-controller.js
parentecfda5bcc54bc444f3620a18a561847d0d2634dd (diff)
downloadtangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.tar
tangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.tar.gz
tangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.tar.bz2
tangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.tar.lz
tangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.tar.xz
tangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.tar.zst
tangerine-wallet-browser-ced36eb20186b0f1bf0c744ac31a5b7804120065.zip
Improve Keyring organization
Separated public & private methods. (Fixes #845) Made class method `type()` into a simple property. (Fixes #846)
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r--app/scripts/keyring-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index cf761c88c..fdef9d7b3 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -67,7 +67,7 @@ module.exports = class KeyringController extends EventEmitter {
currentFiat: this.configManager.getCurrentFiat(),
conversionRate: this.configManager.getConversionRate(),
conversionDate: this.configManager.getConversionDate(),
- keyringTypes: this.keyringTypes.map((krt) => krt.type()),
+ keyringTypes: this.keyringTypes.map(krt => krt.type),
identities: this.identities,
}
}
@@ -312,7 +312,7 @@ module.exports = class KeyringController extends EventEmitter {
getKeyringClassForType (type) {
const Keyring = this.keyringTypes.reduce((res, kr) => {
- if (kr.type() === type) {
+ if (kr.type === type) {
return kr
} else {
return res