default to loop false
This commit is contained in:
parent
93b7e48284
commit
9cf3c485f6
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue