Skip to content

Commit 920dc59

Browse files
Jay Proulxajoslin
Jay Proulx
authored andcommitted
fix(ionSlideBox): prevent NPE during drag
Closes #1240
1 parent 3bfcac3 commit 920dc59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/views/listView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
// Return the list item from the given target
441441
_getItem: function(target) {
442442
while(target) {
443-
if(target.classList.contains(ITEM_CLASS)) {
443+
if(target.classList && target.classList.contains(ITEM_CLASS)) {
444444
return target;
445445
}
446446
target = target.parentNode;

0 commit comments

Comments
 (0)