From 920dc59d75acdcc0a109a6731088b3d3cff09d85 Mon Sep 17 00:00:00 2001 From: Jay Proulx Date: Wed, 30 Apr 2014 12:15:43 -0400 Subject: [PATCH] fix(ionSlideBox): prevent NPE during drag Closes #1240 --- js/views/listView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/listView.js b/js/views/listView.js index 0eb2c5417f7..1e281bc64ec 100644 --- a/js/views/listView.js +++ b/js/views/listView.js @@ -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;