diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-11-04 02:43:53 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-11-04 02:43:53 +0100 |
commit | c271f48c64e859367bdd22321dbfc2e96eefc0af (patch) | |
tree | 7bc5223f6e4f649c7487530c21d9cd209dc97a7e /src/svg.js | |
parent | 2bcd57ca3776a026786c0812206a17d4f1aeae19 (diff) | |
download | svg.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.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) |