fix array empty test
Have to check for array length here, because Boolean([]) is always `true`.pull/36/head
parent
d483866ffc
commit
a554d67b39
|
@ -379,7 +379,7 @@
|
|||
for(var i=0; i<targets.length; i++) {
|
||||
targetsSel.push(targets[i].dataset.target);
|
||||
}
|
||||
if(targetsSel) {
|
||||
if(targetsSel.length > 0) {
|
||||
areas = document.querySelectorAll(targetsSel.join(','));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue