From 337145b839876077c174dc2c089a221358ba9192 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Fri, 24 Feb 2017 20:07:01 +0100 Subject: Added SVG.Symbol so SVG.adopt can pick up symbols correctly --- src/symbol.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/symbol.js (limited to 'src/symbol.js') diff --git a/src/symbol.js b/src/symbol.js new file mode 100644 index 0000000..e7baf53 --- /dev/null +++ b/src/symbol.js @@ -0,0 +1,14 @@ +SVG.Symbol = SVG.invent({ + // Initialize node + create: 'symbol' + + // Inherit from +, inherit: SVG.Container + +, construct: { + // create symbol + symbol: function() { + return this.put(new SVG.Symbol) + } + } +}) \ No newline at end of file -- cgit v1.2.3