Merge pull request #2 from CartoDB/bug-in-microsoft-edge
Don't try to get the class attribute if function is not available
This commit is contained in:
commit
085cd7abdd
@ -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