starting simple

This commit is contained in:
Adam Bradley
2013-09-24 11:05:34 -05:00
parent 52e4a212f2
commit 5a3c2612de
4 changed files with 34 additions and 198 deletions

23
ext/simple/init.js Normal file
View File

@ -0,0 +1,23 @@
(function(window, document, ionic) {
// add tap events to links
function onLinkTap(e) {
window.location = this.href;
return false;
}
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);