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

@ -90,9 +90,16 @@
ionic.Gestures.event.determineEventTypes();
// Register all gestures inside ionic.Gestures.gestures
for(var name in ionic.Gestures.gestures) {
if(ionic.Gestures.gestures.hasOwnProperty(name)) {
ionic.Gestures.detection.register(ionic.Gestures.gestures[name]);
if(this === this.window) {
// this is a window, only add these
ionic.Gestures.detection.register(ionic.Gestures.gestures.Tap);
} else {
// everything else but the window
for(var name in ionic.Gestures.gestures) {
if(ionic.Gestures.gestures.hasOwnProperty(name)) {
ionic.Gestures.detection.register(ionic.Gestures.gestures[name]);
}
}
}