Provide iD() accessors (fixes #141)

This commit is contained in:
John Firebaugh
2012-12-03 16:02:45 -05:00
parent 41548c25bf
commit 0856fcbfc0

View File

@@ -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);