Permalink
Browse files

i am dumb :)

  • Loading branch information...
1 parent c389fbe commit 1553fb93aca7ae106109a742dbddab5ef1959745 @ngryman committed Mar 16, 2013
Showing with 3 additions and 11 deletions.
  1. +3 −11 src/jquery.finger.js
View
@@ -69,7 +69,7 @@
}
// fire drag event
- $.event.trigger($.Event('drag' + $.expando, data.move), null, event.target);
+ $.event.trigger($.Event('drag', data.move), null, event.target);
}
function stopHandler(event) {
@@ -87,13 +87,13 @@
!f.prev || f.prev && now - f.prev > $.Finger.doubleTapInterval ? 'tap' : 'doubletap' :
'press';
f.prev = now;
- $.event.trigger($.Event(evtName + $.expando, data.move), null, event.target);
+ $.event.trigger($.Event(evtName, data.move), null, event.target);
}
// motion events
else {
evtName = now - data.start.time < $.Finger.flickDuration ? 'flick' : 'drag';
data.move.end = true;
- $.event.trigger($.Event(evtName + $.expando, data.move), null, event.target);
+ $.event.trigger($.Event(evtName, data.move), null, event.target);
}
$.event.remove(this, moveEvent + '.finger', moveHandler);
@@ -108,14 +108,6 @@
}
},
- add: function(handleObj) {
- $.event.add(this, handleObj.type + $.expando, handleObj.handler, null, handleObj.selector);
- },
-
- remove: function(handleObj) {
- $.event.add(this, handleObj.type + $.expando, handleObj.handler, null, handleObj.selector);
- },
-
teardown: function() {
if ($.data(this, 'finger')) {
$.event.remove(this, startEvent + '.finger', startHandler);

0 comments on commit 1553fb9

Please sign in to comment.