diff options
Diffstat (limited to 'src/selector.js')
-rw-r--r-- | src/selector.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/selector.js b/src/selector.js new file mode 100644 index 0000000..905e9f9 --- /dev/null +++ b/src/selector.js @@ -0,0 +1,5 @@ +// Method for getting an element by id +SVG.get = function(id) { + var node = document.getElementById(idFromReference(id) || id) + if (node) return node.instance +}
\ No newline at end of file |