From 40892aba5013cd75927f63e66492f46b2d206ec9 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 4 Jan 2017 11:30:45 +1100 Subject: Generation process stopped when table rows cleared Closes #44 --- bip39-standalone.html | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) (limited to 'bip39-standalone.html') diff --git a/bip39-standalone.html b/bip39-standalone.html index 5158b10..afef084 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -18664,6 +18664,8 @@ window.Entropy = new (function() { var phraseChangeTimeoutEvent = null; var rootKeyChangedTimeoutEvent = null; + var generationProcesses = []; + var DOM = {}; DOM.network = $(".network"); DOM.phraseNetwork = $("#network-phrase"); @@ -19157,14 +19159,28 @@ window.Entropy = new (function() { } function displayAddresses(start, total) { - for (var i=0; i 0) { + var generation = generationProcesses.shift(); + generation.stop(); + } } function clearKey() { -- cgit v1.2.3