SVG.Nested = SVG.invent({ // Initialize node create: function() { this.constructor.call(this, SVG.create('svg')) this.style('overflow', 'visible') } // Inherit from , inherit: SVG.Container // Add parent method , construct: { // Create nested svg document nested: function() { return this.put(new SVG.Nested) } } })