Skip to content

Commit

Permalink
Merge pull request mattbryson#74 from voidplus/master
Browse files Browse the repository at this point in the history
reference error
  • Loading branch information
mattbryson committed Mar 16, 2013
2 parents e81858c + 508b59b commit 0ea9c3f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions jquery.touchSwipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@


(function ($) {
+ "use strict";
"use strict";

//Constants
var LEFT = "left",
Expand Down Expand Up @@ -346,13 +346,14 @@


//touch properties
var distance = 0;
var direction = null;
var duration = 0;
var startTouchesDistance=0;
var endTouchesDistance=0;
var pinchZoom = 1;
var pinchDirection=0;
var distance = 0,
direction = null,
duration = 0,
startTouchesDistance = 0,
endTouchesDistance = 0,
pinchZoom = 1,
pinchDistance = 0,
pinchDirection = 0;


//jQuery wrapped element for this instance
Expand All @@ -368,10 +369,10 @@
var fingerData=null;

//track times
var startTime = 0;
var endTime = 0;
var previousTouchEndTime=0;
var previousTouchFingerCount=0;
var startTime = 0,
endTime = 0,
previousTouchEndTime=0,
previousTouchFingerCount=0;

// Add gestures to all swipable areas if supported
try {
Expand Down
2 changes: 1 addition & 1 deletion jquery.touchSwipe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ea9c3f

Please sign in to comment.