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 May 9, 2016
1 parent 3e01b71 commit 4356ffd
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 @@ -626,9 +626,9 @@
clearCachedData();
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 4356ffd

Please sign in to comment.