Merge pull request #36 from Schlaefer/master

fix array empty test (pup)
pull/38/head
Rodolfo Berrios 2018-07-01 14:16:06 -04:00 committed by GitHub
commit 67f2c92626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(','));
}
}