Fixed <a href> tap performance using polyfill

This commit is contained in:
Max Lynch
2013-11-19 19:43:12 -06:00
parent 08fd6f864e
commit 04c4900c93
5 changed files with 34 additions and 34 deletions

View File

@ -66,15 +66,15 @@
if(ele.control) {
return inputTapPolyfill(ele.control, e);
}
} else if( ele.tagName === "A" ) {
var href = ele.getAttribute('href');
if(href) {
ele.click();
e.stopPropagation();
e.preventDefault();
return false;
}
}
/* Let ng-click handle this
else if( ele.tagName === "A" || ele.tagName === "BUTTON" ) {
ele.click();
e.stopPropagation();
e.preventDefault();
return false;
}
*/
ele = ele.parentElement;
}