default to loop false

This commit is contained in:
j 2022-09-26 11:34:03 +01:00
parent 93b7e48284
commit 9cf3c485f6

View file

@ -65,10 +65,15 @@ class PandoraScroll extends HTMLElement {
}
_config() {
var config = {}
var config = {
loop: false
}
for (var i=0; i<this.attributes.length; i++) {
var a = this.attributes[i]
config[a.name] = a.value
if (a.name == 'loop') {
config[a.name] = a.value != 'false'
}
if (a.name == 'layers') {
config[a.name] = a.value.split(' ')
} else if (['in', 'out'].indexOf(a.name) > -1) {