diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-05-01 23:51:35 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-05-01 23:51:35 +0200 |
commit | 8b80921347cc1c183d00f442877453aad22ff672 (patch) | |
tree | 6a6bae3bcab05420538623eb00a1d420e7aa4a33 /src/svg.js | |
parent | b5d2b9d1429f01ba992ff6900d9d7a7388ae6dbd (diff) | |
download | svg.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.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |