simple dist, global tap listener

This commit is contained in:
Adam Bradley
2013-09-25 13:35:10 -05:00
parent 37d708b05e
commit 1e6a0c1959
30 changed files with 387 additions and 129 deletions

View File

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