Merge pull request #2 from CartoDB/bug-in-microsoft-edge

Don't try to get the class attribute if function is not available
master
Javier Álvarez Medina 8 years ago committed by GitHub
commit 085cd7abdd

@ -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