Skip to content

Commit

Permalink
reorder params in destroy function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Drimbe committed Apr 4, 2016
1 parent 0f9ccd3 commit 1067976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/baguetteBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@
unbindImageClickListeners();
unbind(document, 'keydown', keyDownHandler);
document.getElementsByTagName('body')[0].removeChild(document.getElementById('baguetteBox-overlay'));
currentIndex = 0;
currentGallery = [];
data = {};
currentGallery = [];
currentIndex = 0;
}

return {
Expand Down

0 comments on commit 1067976

Please sign in to comment.