Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
open(index = 0) {
const instance = typeof blueimp.Gallery !== 'undefined' ? blueimp.Gallery : blueimp;
const options = Object.assign({
toggleControlsOnReturn: false,
toggleControlsOnSlideClick: false,
closeOnSlideClick: false,
carousel: this.carousel,
container: `#${this.id}`,
index,
onopen: () => this.$emit('onopen'),
onopened: () => this.$emit('onopened'),
onslide: this.onSlideCustom,
onslideend: (index, slide) => this.$emit('onslideend', { index, slide }),
onslidecomplete: (index, slide) => this.$emit('onslidecomplete', { index, slide }),
onclose: () => this.$emit('close'),
onclosed: () => this.$emit('onclosed'),
}, this.options);