Skip to content

Commit

Permalink
fix(ionSlideBox): prevent NPE during drag
Browse files Browse the repository at this point in the history
Closes #1240
  • Loading branch information
Jay Proulx authored and ajoslin committed Apr 30, 2014
1 parent 3bfcac3 commit 920dc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/views/listView.js
Expand Up @@ -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;
Expand Down

0 comments on commit 920dc59

Please sign in to comment.