Don't try to get the class attribute if function is not available

This commit is contained in:
xavijam 2017-03-01 11:46:44 +01:00
parent 735c6c0bf3
commit 6edd7a183c

View File

@ -89,7 +89,7 @@ function bindTouchHandler(element, i, supportsTouch, supportsIePointer) {
} }
function touchMove(e) { function touchMove(e) {
var target = e.target; var target = e.target;
var className = target && target.getAttribute('class') || ''; var className = target && target.getAttribute && target.getAttribute('class') || '';
if (!className.match(/ps-prevent-touchmove/)) { if (!className.match(/ps-prevent-touchmove/)) {
if (!inLocalTouch && i.settings.swipePropagation) { if (!inLocalTouch && i.settings.swipePropagation) {