From 474dfecc9d88d4fa482b34c974362d953fdea394 Mon Sep 17 00:00:00 2001 From: Zee Agency Date: Mon, 20 Feb 2012 21:28:10 +0100 Subject: [PATCH] Expose d3_selection_enterPrototype for better extensibility --- src/core/selection-enter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/selection-enter.js b/src/core/selection-enter.js index 32714da0689f4..bc9071b177e2d 100644 --- a/src/core/selection-enter.js +++ b/src/core/selection-enter.js @@ -5,6 +5,9 @@ function d3_selection_enter(selection) { var d3_selection_enterPrototype = []; +d3.selection.enter = d3_selection_enter; +d3.selection.enter.prototype = d3_selection_enterPrototype; + d3_selection_enterPrototype.append = d3_selectionPrototype.append; d3_selection_enterPrototype.insert = d3_selectionPrototype.insert; d3_selection_enterPrototype.empty = d3_selectionPrototype.empty;