diff options
Diffstat (limited to 'src/nested.js')
-rw-r--r-- | src/nested.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nested.js b/src/nested.js index 537d610..d42abf9 100644 --- a/src/nested.js +++ b/src/nested.js @@ -5,4 +5,13 @@ SVG.Nested = function() { } // Inherit from SVG.Container -SVG.Nested.prototype = new SVG.Container
\ No newline at end of file +SVG.Nested.prototype = new SVG.Container + +// +SVG.extend(SVG.Container, { + // Create nested svg document + nested: function() { + return this.put(new SVG.Nested) + } + +})
\ No newline at end of file |