mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Provide iD() accessors (fixes #141)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user