mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
toggle tap
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
|
||||
// add tap events to links
|
||||
function onLinkTap(e) {
|
||||
window.location = this.href;
|
||||
return false;
|
||||
this.click();
|
||||
}
|
||||
|
||||
function addTapToLinks() {
|
||||
for(var x = 0; x < document.links.length; x++) {
|
||||
if(!document.links[x]._hasTap) {
|
||||
@ -13,7 +13,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ionic.ResetTap = function() {
|
||||
addTapToLinks()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user