summaryrefslogtreecommitdiffstats
path: root/src/instance.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-29 15:16:58 +0100
committerwout <wout@impinc.co.uk>2013-06-29 15:16:58 +0100
commite4fb8522a2c57069b2523f16de92d5eb7e6dd85e (patch)
tree003e0b4dcfd0ff4006e4d45a96b5b7600a0f9396 /src/instance.js
parent9845c4952ab6011e1b8b70a24b7065c2e9c21b7a (diff)
downloadsvg.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.js28
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