]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Refactor clearKey to better named clearKeys
authorIan Coleman <coleman.ian@gmail.com>
Wed, 2 Aug 2017 06:28:12 +0000 (16:28 +1000)
committerIan Coleman <coleman.ian@gmail.com>
Wed, 2 Aug 2017 07:12:21 +0000 (17:12 +1000)
src/js/index.js

index 84c773f86dd7b7352e76ea749dbae1841873b9c7..763967ca45bfb73a47eb7942d87bda6890091eda 100644 (file)
 
     function clearDisplay() {
         clearAddressesList();
-        clearKey();
+        clearKeys();
         hideValidationError();
     }
 
         }
     }
 
-    function clearKey() {
+    function clearKeys() {
+        clearRootKey();
+        clearDerivedKeys();
+    }
+
+    function clearRootKey() {
         DOM.rootKey.val("");
+    }
+
+    function clearDerivedKeys() {
         DOM.extendedPrivKey.val("");
         DOM.extendedPubKey.val("");
+        DOM.bip44accountXprv.val("");
+        DOM.bip44accountXpub.val("");
     }
 
     function addAddressToList(indexText, address, pubkey, privkey) {