Don't try to get the class attribute if function is not available
This commit is contained in:
parent
735c6c0bf3
commit
6edd7a183c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user