Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

hackety hack for both clicks and taps to work fast

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 static
Octocat-spinner-32 README
Octocat-spinner-32 index.html
README
Zepto fast buttons without nasty ghostclicks.
Supports event delegation and handlers removal.
Highly inspired by http://code.google.com/mobile/articles/fast_buttons.html
    
Usage:
    
bind:
$('#someid').onpress(function(event){});
$('#someid').offpress(function(event){});
    
delegation:
$('#someid').onpress('.childNode', function(event){});
$('#someid').offpress('.childNode', function(event){});
    
Word of advice:
Never ever try to attach this event handlers to: document, html, body.
All sorts of weirdness going to happen. Use onclick instead.
Something went wrong with that request. Please try again.