Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
use activate and deactivate gesture, add/remove assumes event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 28, 2014
1 parent cb37bad commit 3acc3c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/declaration/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

return function(model, node, oneTime) {
var handler = events.getEventHandler(undefined, node, pathString);
PolymerGestures.addGesture(node, eventType);
PolymerGestures.activateGesture(node, eventType);
node.addEventListener(eventType, handler);

if (oneTime)
Expand All @@ -102,7 +102,7 @@
open: bindingValue,
discardChanges: bindingValue,
close: function() {
PolymerGestures.removeGesture(node, eventType);
PolymerGestures.deactivateGesture(node, eventType);
node.removeEventListener(eventType, handler);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/instance/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// by default supports 1 thing being bound.
for (var type in events) {
var methodName = events[type];
PolymerGestures.addGesture(this, type);
PolymerGestures.activateGesture(this, type);
this.addEventListener(type, this.element.getEventHandler(this, this,
methodName));
}
Expand Down

0 comments on commit 3acc3c6

Please sign in to comment.