Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sporritt committed Sep 2, 2015
1 parent 557bb7b commit b7a0432
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/base-library-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,18 @@
getEventManager:function() {
return _getEventManager(this);
},
// EVENTS
// e.originalEvent is for jQuery; in Vanilla jsPlumb we get the native event.

on : function(el, event, callback) {
// TODO: here we would like to map the tap event if we know its
// an internal bind to a click. we have to know its internal because only
// then can we be sure that the UP event wont be consumed (tap is a synthesized
// event from a mousedown followed by a mouseup).
//event = { "click":"tap", "dblclick":"dbltap"}[event] || event;
this.getEventManager().on.apply(this, arguments);
return this;
},
off : function(el, event, callback) {
this.getEventManager().off.apply(this, arguments);
return this;
}
});

Expand Down

0 comments on commit b7a0432

Please sign in to comment.