mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
24 lines
461 B
JavaScript
24 lines
461 B
JavaScript
(function(window, document, ionic) {
|
|
|
|
// add tap events to links
|
|
function onLinkTap(e) {
|
|
this.click();
|
|
}
|
|
|
|
function addTapToLinks() {
|
|
for(var x = 0; x < document.links.length; x++) {
|
|
if(!document.links[x]._hasTap) {
|
|
ionic.on('tap', onLinkTap, document.links[x]);
|
|
document.links[x]._hasTap = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
ionic.ResetTap = function() {
|
|
addTapToLinks()
|
|
};
|
|
|
|
ionic.ResetTap();
|
|
|
|
})(this, document, ionic);
|