Permalink
Browse files

Use regex for e.touches replacement

Was not firing globally before, this fixes tests.
  • Loading branch information...
1 parent 9a86124 commit 1a6323daee43457ade7441dd885b6221fa19b0e4 @davidkaneda davidkaneda committed Feb 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Gruntfile.coffee
View
@@ -126,7 +126,7 @@ module.exports = (grunt) ->
# Convert Zepto's touch class to work for jQuery
processContent: (content) ->
content
- .replace('e.touches', '(e.originalEvent||e).touches')
+ .replace(/e\.touches/g, '(e.originalEvent||e).touches')
.replace('(Zepto)', '(jQuery)')
files:

0 comments on commit 1a6323d

Please sign in to comment.