From 6edd7a183c2f2a441cb560b562219ca6484307e0 Mon Sep 17 00:00:00 2001 From: xavijam Date: Wed, 1 Mar 2017 11:46:44 +0100 Subject: [PATCH] Don't try to get the class attribute if function is not available --- src/js/plugin/handler/touch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/plugin/handler/touch.js b/src/js/plugin/handler/touch.js index c4368ab..7dc7deb 100644 --- a/src/js/plugin/handler/touch.js +++ b/src/js/plugin/handler/touch.js @@ -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) {