Skip to content

Commit

Permalink
Fix new "reset groups" disaster
Browse files Browse the repository at this point in the history
  • Loading branch information
deoostfrees committed Jan 17, 2022
1 parent b4e3525 commit 625bc8c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
9 changes: 8 additions & 1 deletion dist/js/parvus.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,14 @@ function Parvus(userOptions) {
lightbox.classList.remove('parvus--is-closing');
lightbox.classList.remove('parvus--is-vertical-closing'); // Reset groups

groups = {};
/* TODO: Mach's halt richtig :-/
groups[activeGroup].gallery = []
groups[activeGroup].slider = null
groups[activeGroup].sliderElements = []
groups[activeGroup].images = []
*/

groups[activeGroup].slider.remove();
IMAGE.style.transform = '';
}, {
once: true
Expand Down
2 changes: 1 addition & 1 deletion dist/js/parvus.esm.min.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion dist/js/parvus.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,14 @@
lightbox.classList.remove('parvus--is-closing');
lightbox.classList.remove('parvus--is-vertical-closing'); // Reset groups

groups = {};
/* TODO: Mach's halt richtig :-/
groups[activeGroup].gallery = []
groups[activeGroup].slider = null
groups[activeGroup].sliderElements = []
groups[activeGroup].images = []
*/

groups[activeGroup].slider.remove();
IMAGE.style.transform = '';
}, {
once: true
Expand Down
2 changes: 1 addition & 1 deletion dist/js/parvus.min.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion src/js/parvus.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,14 @@ export default function Parvus (userOptions) {
lightbox.classList.remove('parvus--is-vertical-closing')

// Reset groups
groups = {}
/* TODO: Mach's halt richtig :-/
groups[activeGroup].gallery = []
groups[activeGroup].slider = null
groups[activeGroup].sliderElements = []
groups[activeGroup].images = []
*/

groups[activeGroup].slider.remove()

IMAGE.style.transform = ''
},
Expand Down

0 comments on commit 625bc8c

Please sign in to comment.