d3: Transition.call(...) defines wrong signature

The D3 definition file contains an error in the signature of
Transition.call(...). The callback will be passed the transition
object and it supports optional arguments similar to
Selection.call(...).
This commit is contained in:
Ben Ripkens
2014-12-03 16:57:08 +01:00
parent bd0833a22e
commit 2b89a26bb0
Vendored
+1 -1
View File
@@ -926,7 +926,7 @@ declare module D3 {
(name: string, value: any, priority?: string): Transition;
(name: string, valueFunction: (data: any, index: number) => any, priority?: string): Transition;
};
call(callback: (selection: Selection) => void ): Transition;
call(callback: (transition: Transition, ...args: any[]) => void, ...args: any[]): Transition;
/**
* Select an element from the current document
*/