summaryrefslogtreecommitdiffstats
path: root/src/defs.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-03 15:14:47 +0100
committerwout <wout@impinc.co.uk>2014-02-03 15:14:47 +0100
commite2304534e0cfb6f6f4ab8c37ea5275ae26cd455a (patch)
tree2386e9f361d9c5fa1308387aeeaf33f00241b3c5 /src/defs.js
parent7a29817ffd764cf7ab6906250b57f234801c94e0 (diff)
downloadsvg.js-e2304534e0cfb6f6f4ab8c37ea5275ae26cd455a.tar.gz
svg.js-e2304534e0cfb6f6f4ab8c37ea5275ae26cd455a.zip
Implemented SVG.invent function and bumped to v1.0rc3
Diffstat (limited to 'src/defs.js')
-rwxr-xr-xsrc/defs.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/defs.js b/src/defs.js
index 48a8f28..a50ad94 100755
--- a/src/defs.js
+++ b/src/defs.js
@@ -1,9 +1,8 @@
-// ### The defs node
-//
-SVG.Defs = function() {
- this.constructor.call(this, SVG.create('defs'))
-}
+SVG.Defs = SVG.invent({
+ // Initialize node
+ create: 'defs'
-// Inherits from SVG.Container
-SVG.Defs.prototype = new SVG.Container \ No newline at end of file
+ // Inherit from
+, inherit: SVG.Container
+}) \ No newline at end of file