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;