From c6ac1246c271c66733366086f467e381c3fd65a8 Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 16 Dec 2012 16:15:47 +0100 Subject: Implemented core library --- src/rect.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/rect.js (limited to 'src/rect.js') diff --git a/src/rect.js b/src/rect.js new file mode 100644 index 0000000..b08d68e --- /dev/null +++ b/src/rect.js @@ -0,0 +1,7 @@ + +SVG.Rect = function Rect() { + this.constructor.call(this, SVG.createElement('rect')); +}; + +// inherit from SVG.Shape +SVG.Rect.prototype = new SVG.Shape(); \ No newline at end of file -- cgit v1.2.3