Skip to content

Commit 625bc8c

Browse files
committed
Fix new "reset groups" disaster
1 parent b4e3525 commit 625bc8c

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

dist/js/parvus.esm.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,14 @@ function Parvus(userOptions) {
499499
lightbox.classList.remove('parvus--is-closing');
500500
lightbox.classList.remove('parvus--is-vertical-closing'); // Reset groups
501501

502-
groups = {};
502+
/* TODO: Mach's halt richtig :-/
503+
groups[activeGroup].gallery = []
504+
groups[activeGroup].slider = null
505+
groups[activeGroup].sliderElements = []
506+
groups[activeGroup].images = []
507+
*/
508+
509+
groups[activeGroup].slider.remove();
503510
IMAGE.style.transform = '';
504511
}, {
505512
once: true

dist/js/parvus.esm.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/parvus.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,14 @@
505505
lightbox.classList.remove('parvus--is-closing');
506506
lightbox.classList.remove('parvus--is-vertical-closing'); // Reset groups
507507

508-
groups = {};
508+
/* TODO: Mach's halt richtig :-/
509+
groups[activeGroup].gallery = []
510+
groups[activeGroup].slider = null
511+
groups[activeGroup].sliderElements = []
512+
groups[activeGroup].images = []
513+
*/
514+
515+
groups[activeGroup].slider.remove();
509516
IMAGE.style.transform = '';
510517
}, {
511518
once: true

dist/js/parvus.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/parvus.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,14 @@ export default function Parvus (userOptions) {
554554
lightbox.classList.remove('parvus--is-vertical-closing')
555555

556556
// Reset groups
557-
groups = {}
557+
/* TODO: Mach's halt richtig :-/
558+
groups[activeGroup].gallery = []
559+
groups[activeGroup].slider = null
560+
groups[activeGroup].sliderElements = []
561+
groups[activeGroup].images = []
562+
*/
563+
564+
groups[activeGroup].slider.remove()
558565

559566
IMAGE.style.transform = ''
560567
},

0 commit comments

Comments
 (0)