fix(ionSlideBox): prevent NPE during drag

Closes #1240
This commit is contained in:
Jay Proulx
2014-04-30 12:15:43 -04:00
committed by Andy Joslin
parent 3bfcac31e4
commit 920dc59d75

View File

@@ -440,7 +440,7 @@
// Return the list item from the given target
_getItem: function(target) {
while(target) {
if(target.classList.contains(ITEM_CLASS)) {
if(target.classList && target.classList.contains(ITEM_CLASS)) {
return target;
}
target = target.parentNode;