Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
Remove missing semicolons and unused parameters ...
  • Loading branch information
GeraldNDA committed May 21, 2021
1 parent 31ad3fd commit e211961
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/baguetteBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
if (event.target.id.indexOf('baguette-img') !== -1) {
handleImageClick();
}
}
};
var captionClickHandler = function(event) {
if (event.target.id.indexOf('baguetteBox-figcaption') !== -1) {
handleCaptionClick();
}
}
};
var overlayClickHandler = function(event) {
// Close the overlay when user clicks directly on the background
if (event.target.id.indexOf('baguette-img') !== -1) {
Expand Down Expand Up @@ -483,13 +483,13 @@
}
}

function handleImageClick(index, gallery) {
function handleImageClick() {
if (options.onImageClick) {
options.onImageClick(currentIndex, imagesElements.length);
}
}

function handleCaptionClick(index, gallery) {
function handleCaptionClick() {
if (options.onCaptionClick) {
options.onCaptionClick(currentIndex, imagesElements.length);
}
Expand Down

0 comments on commit e211961

Please sign in to comment.