summaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-01 23:51:35 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-01 23:51:35 +0200
commit8b80921347cc1c183d00f442877453aad22ff672 (patch)
tree6a6bae3bcab05420538623eb00a1d420e7aa4a33 /src/svg.js
parentb5d2b9d1429f01ba992ff6900d9d7a7388ae6dbd (diff)
downloadsvg.js-8b80921347cc1c183d00f442877453aad22ff672.tar.gz
svg.js-8b80921347cc1c183d00f442877453aad22ff672.zip
make morphing work, fix inheritance, animations now work
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg.js b/src/svg.js
index 9b3bfd6..2ec5908 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -52,12 +52,13 @@ SVG.invent = function (config) {
// Create element initializer
var initializer = typeof config.create === 'function' ? config.create
: function (node) {
- this.constructor(node || SVG.create(config.create))
+ SVG.Element.call(this, node || SVG.create(config.create))
}
// Inherit prototype
if (config.inherit) {
initializer.prototype = new config.inherit()
+ initializer.prototype.constructor = initializer
}
// Extend with methods