From 3613f6e780cd4dffa63f697c4078c2178607bf91 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Wed, 31 May 2017 09:50:46 +0700 Subject: [PATCH] Fixing up recent refactoring. --- web/source/keymanweb.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/web/source/keymanweb.js b/web/source/keymanweb.js index 3b29bb5bc6..fa03889d92 100644 --- a/web/source/keymanweb.js +++ b/web/source/keymanweb.js @@ -3569,22 +3569,22 @@ if(lcTagName == 'input' || lcTagName == 'textarea' || lcTagName == 'iframe') { inputElementAdditions.push(addedNode); } - } - - // There also exists a 'mutation.removedNodes' array. We'll need to address that for issue #63. - - /* After all mutations have been handled, we need to recompile our .sortedInputs array, but only. - * if any have actually occurred. - */ - if(inputElementAdditions.length) { - keymanweb.listInputs(); - } - + } } for(var k = 0; k < inputElementAdditions.length; k++) { keymanweb._MutationAdditionObserved(inputElementAdditions[k]); } + + // There also exists a 'mutation.removedNodes' array. We'll need to address that for issue #63, and its + // respective _MutationRemovalObserved should be called here. + + /* After all mutations have been handled, we need to recompile our .sortedInputs array, but only. + * if any have actually occurred. + */ + if(inputElementAdditions.length) { + keymanweb.listInputs(); + } }); var observationConfig = { childList: true, subtree: true };