diff options
author | wout <wout@impinc.co.uk> | 2013-06-29 15:16:58 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-06-29 15:16:58 +0100 |
commit | e4fb8522a2c57069b2523f16de92d5eb7e6dd85e (patch) | |
tree | 003e0b4dcfd0ff4006e4d45a96b5b7600a0f9396 /src/instance.js | |
parent | 9845c4952ab6011e1b8b70a24b7065c2e9c21b7a (diff) | |
download | svg.js-e4fb8522a2c57069b2523f16de92d5eb7e6dd85e.tar.gz svg.js-e4fb8522a2c57069b2523f16de92d5eb7e6dd85e.zip |
IMplemented <use> element, bumped to v0.23
Diffstat (limited to 'src/instance.js')
-rw-r--r-- | src/instance.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/instance.js b/src/instance.js deleted file mode 100644 index 086a019..0000000 --- a/src/instance.js +++ /dev/null @@ -1,28 +0,0 @@ -SVG.Use = function() { - this.constructor.call(this, SVG.create('use')) -} - -// Inherit from SVG.Shape -SVG.Use.prototype = new SVG.Element - -// -SVG.extend(SVG.Use, { - - // (re)load image - load: function(url) { - return (url ? this.attr('xlink:href', (this.src = url), SVG.xlink) : this) - } - -}) - -// -SVG.extend(SVG.Container, { - // Create a use element - use: function(element) { - if (element instanceof SVG.Element) - element = element.id - - return this.put(new SVG.Use().) - } - -})
\ No newline at end of file |