react-fastclick
Advanced tools
Comparing version
@@ -94,3 +94,3 @@ 'use strict'; | ||
// Get original click listener remove function | ||
var removeOriginalListener = listen(target, eventType, onClick); | ||
var originalListener = listen(target, eventType, onClick); | ||
@@ -102,3 +102,5 @@ addListener(target, constants.touchstart, onTouchStart); | ||
remove: function () { | ||
removeOriginalListener(); | ||
if (originalListener && typeof originalListener.remove === 'function') { | ||
originalListener.remove(); | ||
} | ||
removeListener(target, constants.touchstart, onTouchStart); | ||
@@ -105,0 +107,0 @@ } |
{ | ||
"name": "react-fastclick", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Fast Touch Events for React", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# React Fastclick | ||
[](https://travis-ci.org/JakeSidSmith/react-fastclick) | ||
@@ -3,0 +4,0 @@ **Instantly make your desktop / hybrid apps more responsive on touch devices.** |
8304
2.87%94
2.17%60
1.69%