aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2017-08-02 16:28:12 +1000
committerIan Coleman <coleman.ian@gmail.com>2017-08-02 17:12:21 +1000
commitfa2e4e936eea702d9e3ea56b256bbd886ca26bdf (patch)
treef1f7f70f051eef82cbdd54c8df99ed5f2683832a /src/js
parent684624b522025062e0426b0c2dd77281d4108f6f (diff)
downloadBIP39-fa2e4e936eea702d9e3ea56b256bbd886ca26bdf.tar.gz
BIP39-fa2e4e936eea702d9e3ea56b256bbd886ca26bdf.tar.zst
BIP39-fa2e4e936eea702d9e3ea56b256bbd886ca26bdf.zip
Refactor clearKey to better named clearKeys
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 84c773f..763967c 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -625,7 +625,7 @@
625 625
626 function clearDisplay() { 626 function clearDisplay() {
627 clearAddressesList(); 627 clearAddressesList();
628 clearKey(); 628 clearKeys();
629 hideValidationError(); 629 hideValidationError();
630 } 630 }
631 631
@@ -641,10 +641,20 @@
641 } 641 }
642 } 642 }
643 643
644 function clearKey() { 644 function clearKeys() {
645 clearRootKey();
646 clearDerivedKeys();
647 }
648
649 function clearRootKey() {
645 DOM.rootKey.val(""); 650 DOM.rootKey.val("");
651 }
652
653 function clearDerivedKeys() {
646 DOM.extendedPrivKey.val(""); 654 DOM.extendedPrivKey.val("");
647 DOM.extendedPubKey.val(""); 655 DOM.extendedPubKey.val("");
656 DOM.bip44accountXprv.val("");
657 DOM.bip44accountXpub.val("");
648 } 658 }
649 659
650 function addAddressToList(indexText, address, pubkey, privkey) { 660 function addAddressToList(indexText, address, pubkey, privkey) {