mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
simple dist, global tap listener
This commit is contained in:
@ -1,23 +0,0 @@
|
||||
(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);
|
||||
Reference in New Issue
Block a user