From 9c18dd488acc1c3b5582f069302ed3089edac032 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Fri, 6 May 2016 12:59:15 -0700 Subject: [PATCH] Rename callback to listener. --- src/selection/on.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/selection/on.js b/src/selection/on.js index bd1c1c9..c225a46 100644 --- a/src/selection/on.js +++ b/src/selection/on.js @@ -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; }