Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix array empty test
Browse files Browse the repository at this point in the history
Have to check for array length here, because Boolean([]) is always `true`.
  • Loading branch information
Schlaefer committed Jul 1, 2018
1 parent d483866 commit a554d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/pup.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(','));
}
}
Expand Down

0 comments on commit a554d67

Please sign in to comment.