Skip to content

Commit

Permalink
Fixes #87 Copy paste fail
Browse files Browse the repository at this point in the history
Closes #91
  • Loading branch information
marclaval committed Mar 5, 2014
1 parent 05ab5c8 commit 723ce4b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hsp/gestures/gesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ var Gesture = klass({
* @protected
*/
_addListener : function (eventName, cb) {
//aria.utils.Event.addListener(this.target, eventName, cb);
this.callbackMap[eventName] = cb;
var addEL = (this.target.addEventListener !== undefined);
if (!addEL) {
Expand Down Expand Up @@ -286,7 +285,6 @@ var Gesture = klass({
* @protected
*/
_removeListener : function (eventName, cb) {
//aria.utils.Event.removeListener(this.target, eventName, cb);
this.callbackMap[eventName] = null;
var rmEL = (this.target.removeEventListener !== undefined);
if (rmEL) {
Expand Down Expand Up @@ -333,9 +331,7 @@ var Gesture = klass({
extraData.currentX = position[0].x;
extraData.currentY = position[0].y;
fakeEvent.detail = extraData;
//aria.utils.Delegate.delegate(fakeEvent);
this.evthandler.handleEvent(fakeEvent);
//aria.utils.Delegate.delegate(fakeEvent);
event.cancelBubble = fakeEvent.hasStopPropagation;
event.returnValue = !fakeEvent.hasPreventDefault;
return event.returnValue;
Expand Down

0 comments on commit 723ce4b

Please sign in to comment.