Skip to content

Commit

Permalink
whitespace and removed comment that is equal to the function name
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Apr 30, 2024
1 parent 1ca5dc0 commit eec90c0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions js/varien/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ function buttonDisabler() {
}

/**
* Adds copy icons to elements with the class 'copy-text'.
* Adds copy icons to elements that have the class 'copy-text'
*/
function addCopyIcons() {
if (navigator.clipboard === undefined) {
Expand All @@ -719,11 +719,8 @@ function addCopyIcons() {
});
}


/**
* Creates a copy icon element.
*
* @return {HTMLElement} The created copy icon element.
* @return {HTMLElement} The created copy icon element
*/
function createCopyIconElement() {
const copyIcon = document.createElement('span');
Expand All @@ -733,10 +730,11 @@ function createCopyIconElement() {

return copyIcon;
}

/**
* Copies the text from the data-text attribute of the clicked element to the clipboard.
* Copies the text from the data-text attribute of the clicked element to the clipboard
*
* @param {Event} event - The event object triggered by the click event.
* @param {Event} event - The event object triggered by the click event
*/
function copyText(event) {
const copyIcon = event.currentTarget;
Expand Down

0 comments on commit eec90c0

Please sign in to comment.