Skip to content

Commit

Permalink
Add modernizr usage in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed May 16, 2012
1 parent 40512a3 commit 9989a8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.markdown
Expand Up @@ -3,8 +3,18 @@
This plugin should solve your unresponsive slow taps on touch devices. Made to intercept jquery click events. Supports normal events and delegates.

## Usage

// Initialize tapClick
$.tapClick();

// Bind events
$('.button').on('click', handler);

## Usage with Modernizr
You can use any test you'd like to initialize tapClick. Here's an example using [Modernizr](http://modernizr.com "Go to Modernizr website").

// Initialize tapClick if touch
Modernizr.touch && $.tapClick();

// Bind events
$('.button').on('click', handler);

0 comments on commit 9989a8c

Please sign in to comment.