Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 514 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 514 Bytes

jquery.touchClick.js

This plugin allows you to assign events to all tap events while ensuring the events don’t fire twice. touchClick() is a jQuery plugin port of http://jsbin.com/ijizat/25

Demo

http://cdpn.io/kjind

Usage

var $target = $('#target'),
	$b = $('<b/>');

$('button')
	.touchClick(function( e ){
		$target.append(
			$b.clone()
				.text(
					$( e.target ).text() + ' ' + e.type
				)
		);
	});