aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-04 02:43:53 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-04 02:43:53 +0100
commitc271f48c64e859367bdd22321dbfc2e96eefc0af (patch)
tree7bc5223f6e4f649c7487530c21d9cd209dc97a7e /src/svg.js
parent2bcd57ca3776a026786c0812206a17d4f1aeae19 (diff)
downloadsvg.js-c271f48c64e859367bdd22321dbfc2e96eefc0af.tar.gz
svg.js-c271f48c64e859367bdd22321dbfc2e96eefc0af.zip
fixed return value of `text()` after import/clone (#393)
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/svg.js b/src/svg.js
index 42d486e..c8454f0 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -21,7 +21,7 @@ SVG.supported = (function() {
!! document.createElementNS(SVG.ns,'svg').createSVGRect
})()
-// Don't bother to continue if SVG is not supported
+// Don't bother to continue if SVG is not supported
if (!SVG.supported) return false
// Element id sequence
@@ -36,23 +36,23 @@ SVG.eid = function(name) {
SVG.create = function(name) {
// create element
var element = document.createElementNS(this.ns, name)
-
+
// apply unique id
element.setAttribute('id', this.eid(name))
-
+
return element
}
// Method for extending objects
SVG.extend = function() {
var modules, methods, key, i
-
+
// Get list of modules
modules = [].slice.call(arguments)
-
+
// Get object with extensions
methods = modules.pop()
-
+
for (i = modules.length - 1; i >= 0; i--)
if (modules[i])
for (key in methods)