From 91990a1e5959c107319a4b59bfcc8f203f2a944b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Thu, 30 Jul 2020 13:41:30 +0200 Subject: [PATCH] fix crash on transition.size() fixes https://github.com/d3/d3-transition/issues/112 --- src/transition/end.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transition/end.js b/src/transition/end.js index d9aa373..da1951f 100644 --- a/src/transition/end.js +++ b/src/transition/end.js @@ -1,7 +1,7 @@ import {set} from "./schedule.js"; export default function() { - var on0, on1, that = this, id = that._id, size = that.size(); + var on0, on1, that = this, id = that._id, size = that.selection().size(); return new Promise(function(resolve, reject) { var cancel = {value: reject}, end = {value: function() { if (--size === 0) resolve(); }};