I'm using the latest build of hammerjs (1.0.6). The jquery build they have is a bit buggy with requirejs, so I'm just using the standard build.
Fiddle: http://jsfiddle.net/mcfarljw/fDYx3/
How can I get this tap event to fire once and then remove itself? I thought it would have been as simple as calling off, but that appears not to be the case. Any help would be greatly appreciated!
var tapCount = 0;
Hammer($('#box')[0]).on('tap', function() {
tapCount++
$('#counter').text(tapCount);
Hammer($('#box')[0]).off('tap');
});
.one()
method instead of.on()
.