backbone.touch
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -64,2 +64,4 @@ // (c) 2012 Raymond Julin, Keyteq AS | ||
); | ||
// add the original event listener for devices with touch + mouse | ||
this.$el.on(eventName, selector, method); | ||
} | ||
@@ -92,3 +94,2 @@ else { | ||
// will stop propagation and prevent default | ||
// for *button* and *a* elements | ||
_touchHandler : function(e) { | ||
@@ -112,8 +113,4 @@ var oe = e.originalEvent || e; | ||
if (this.touchPrevents) { | ||
var tagName = e.currentTarget.tagName; | ||
if (tagName === 'BUTTON' || | ||
tagName === 'A') { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
} | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
} | ||
@@ -120,0 +117,0 @@ e.data.method(e); |
{ | ||
"name": "backbone.touch", | ||
"version": "0.4.2", | ||
"main": "./backbone.touch.js", | ||
"ignore": ["test/*"], | ||
"dependencies": { | ||
"backbone": ">=1.0.0" | ||
} | ||
"name": "backbone.touch", | ||
"version": "0.4.3", | ||
"main": "./backbone.touch.js", | ||
"ignore": [ | ||
"test/*" | ||
], | ||
"dependencies": { | ||
"backbone": ">=1.0.0" | ||
} | ||
} |
{ | ||
"name": "backbone.touch", | ||
"description": "Enable faster click events on touch devices for Backbone views.", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"homepage": "https://github.com/nervetattoo/backbone.touch", | ||
@@ -6,0 +6,0 @@ "main": "backbone.touch.js", |
362298
10276