From 0856fcbfc0ba87cd07e0565bcf5e07af5d2bb177 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 3 Dec 2012 16:02:45 -0500 Subject: [PATCH] Provide iD() accessors (fixes #141) --- js/id/id.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/id/id.js b/js/id/id.js index b1146713b..59dd57cee 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -162,11 +162,15 @@ var iD = function(container) { if (!arguments.length) return connection; connection = _; return editor; - } + }; editor.map = function() { return map; - } + }; + + editor.controller = function() { + return controller; + }; if (arguments.length) { d3.select(container).call(editor);