soyjavi / QuoJS

Micro #JavaScript Library for Mobile Devices
MIT License
2.07k stars 236 forks source link

.tap fires twice? #52

Closed dallasbpeters closed 11 years ago

dallasbpeters commented 11 years ago

For some reason my alert fires twice. Any ideas? I can post more code if this is not enough information.

$$('.verse-container').tap(function() {
   $$(this).addClass('tapped');
   alert("tap");
});
dallasbpeters commented 11 years ago

figured it out.

$$('.verse-container').on('tap', this.tapverse);

... tapverse: function(){ $$(this).addClass('tapped'); }