Fixing up recent refactoring.

This commit is contained in:
Joshua Horton 2017-05-31 09:50:46 +07:00
parent 722cfd02fe
commit 3613f6e780

View file

@ -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 };