Skip to content

Commit

Permalink
Removed console.log.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltan-dulac committed Jan 25, 2023
1 parent 3ab0173 commit c99a68c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions js/modules/enable-character-count.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const enableCharacterCount = new function() {

if (dataset.announceAfterEscape === 'true') {
const desc = target.getAttribute('aria-describedby') || '';
console.log('setting desc', target, desc);
target.setAttribute('aria-describedby', `${desc} character-count__desc`.trim());

}
Expand Down Expand Up @@ -70,10 +69,7 @@ const enableCharacterCount = new function() {
ariaDescBy = ariaDescBy ? ariaDescBy.replace('character-count__desc', '') : '';
ariaDescBy = ariaDescBy.split(/\s+/)[0];

console.log('!!!', ariaDescBy)

const ariaDescByEl = ariaDescBy && document.getElementById(ariaDescBy);
console.log('desc', ariaDescBy, ariaDescByEl);
const counterEl = document.createElement('output');
const targetId = target.id || getNewId();
counterEl.className = "enable-character-count";
Expand All @@ -90,7 +86,6 @@ const enableCharacterCount = new function() {
target.insertAdjacentElement('afterend', counterEl);
}

console.log(counterEl.parentNode);
}

function addLiveRegion() {
Expand Down
5 changes: 0 additions & 5 deletions js/modules/es4/enable-character-count.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const enableCharacterCount = new function() {

if (dataset.announceAfterEscape === 'true') {
const desc = target.getAttribute('aria-describedby') || '';
console.log('setting desc', target, desc);
target.setAttribute('aria-describedby', `${desc} character-count__desc`.trim());

}
Expand Down Expand Up @@ -69,10 +68,7 @@ const enableCharacterCount = new function() {
ariaDescBy = ariaDescBy ? ariaDescBy.replace('character-count__desc', '') : '';
ariaDescBy = ariaDescBy.split(/\s+/)[0];

console.log('!!!', ariaDescBy)

const ariaDescByEl = ariaDescBy && document.getElementById(ariaDescBy);
console.log('desc', ariaDescBy, ariaDescByEl);
const counterEl = document.createElement('output');
const targetId = target.id || getNewId();
counterEl.className = "enable-character-count";
Expand All @@ -89,7 +85,6 @@ const enableCharacterCount = new function() {
target.insertAdjacentElement('afterend', counterEl);
}

console.log(counterEl.parentNode);
}

function addLiveRegion() {
Expand Down

0 comments on commit c99a68c

Please sign in to comment.