From 8f03d84e43681ecca20ac028071e51a2e2bbc0c8 Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 9 Jun 2013 11:37:26 +0100 Subject: Added deep traversing, reorganizd modules --- src/path.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/path.js') diff --git a/src/path.js b/src/path.js index b328d92..ef6ab03 100644 --- a/src/path.js +++ b/src/path.js @@ -13,4 +13,13 @@ SVG.extend(SVG.Path, { return this.attr('d', data || 'M0,0') } +}) + +// +SVG.extend(SVG.Container, { + // Create a wrapped path element + path: function(data, unbiased) { + return this.put(new SVG.Path(unbiased)).plot(data) + } + }) \ No newline at end of file -- cgit v1.2.3