Skip to content

Commit

Permalink
removed unused check in the gesture handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
jtangelder committed May 1, 2014
1 parent ddce9f2 commit 7f027da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
8 changes: 2 additions & 6 deletions hammer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Hammer.JS - v1.1.2 - 2014-04-25
/*! Hammer.JS - v1.1.2 - 2014-05-01
* http://eightmedia.github.io/hammer.js
*
* Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
Expand Down Expand Up @@ -1098,11 +1098,7 @@ var Detection = Hammer.detection = {
Utils.each(this.gestures, function triggerGesture(gesture) {
// only when the instance options have enabled this gesture
if(!this.stopped && inst.enabled && instOptions[gesture.name]) {
// if a handler returns false, we stop with the detection
if(gesture.handler.call(gesture, eventData, inst) === false) {
this.stopDetect();
return false;
}
gesture.handler.call(gesture, eventData, inst);
}
}, this);

Expand Down

0 comments on commit 7f027da

Please sign in to comment.