Skip to content

Commit

Permalink
Rename callback to listener.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed May 6, 2016
1 parent 2e6967d commit 9c18dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/selection/on.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ export default function(typename, value, capture) {
return this;
}

export function customEvent(event1, callback, that, args) {
export function customEvent(event1, listener, that, args) {
var event0 = event;
event1.sourceEvent = event;
event = event1;
try {
return callback.apply(that, args);
return listener.apply(that, args);
} finally {
event = event0;
}
Expand Down

0 comments on commit 9c18dd4

Please sign in to comment.