Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skocheri committed Oct 16, 2020
1 parent 021cd69 commit a44f22a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/idLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ function targetAction(conf, mutations, observer) {
function addInputElementsElementListner(conf) {
logInfo('Adding input element listeners');
const inputs = document.querySelectorAll('input[type=text], input[type=email]');
inputs.forEach((input) => {
for (const input of inputs) {
logInfo(` Original Value in Input = ${input.value}`);
input.addEventListener('change', event => processInputChange(event, conf));
input.addEventListener('blur', event => processInputChange(event, conf));
});
}
}

function removeInputElementsElementListner(conf) {
logInfo('Removing input element listeners');
const inputs = document.querySelectorAll('input[type=text], input[type=email]');
inputs.forEach((input) => {
for (const input of inputs) {
input.removeEventListener('change', event => processInputChange(event, conf));
input.removeEventListener('blur', event => processInputChange(event, conf));
});
}
}

function processInputChange(event, conf) {
Expand Down

0 comments on commit a44f22a

Please sign in to comment.