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

master
xavijam 8 years ago
parent 735c6c0bf3
commit 6edd7a183c

@ -89,7 +89,7 @@ function bindTouchHandler(element, i, supportsTouch, supportsIePointer) {
}
function touchMove(e) {
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 (!inLocalTouch && i.settings.swipePropagation) {

Loading…
Cancel
Save