aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/svg.js b/src/svg.js
index 0716a0a..043e245 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -36,12 +36,7 @@ SVG.eid = function(name) {
// Method for element creation
SVG.create = function(name) {
// create element
- var element = document.createElementNS(this.ns, name)
-
- // apply unique id
- element.setAttribute('id', this.eid(name))
-
- return element
+ return document.createElementNS(this.ns, name)
}
// Method for extending objects