diff options
author | wout <wout@impinc.co.uk> | 2014-08-01 20:49:36 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-08-01 20:49:36 +0200 |
commit | dde8acc2aaf0c186baa7e0a2433df4a39e883cb7 (patch) | |
tree | 277b9f96aee61c2db5cc00755194de23b35c73e5 /README.md | |
parent | 8b3274cb0e1632a4dfb44244aeaab12cbc7816bf (diff) | |
download | svg.js-dde8acc2aaf0c186baa7e0a2433df4a39e883cb7.tar.gz svg.js-dde8acc2aaf0c186baa7e0a2433df4a39e883cb7.zip |
Updated README
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -803,17 +803,17 @@ __`returns`: `SVG.Bare`__ _Javascript inheritance stack: `SVG.Bare` < `SVG.Element` [with a shallow inheritance from `SVG.Parent`]_ ## Bare -For all SVG elements that are not described by SVG.js, the `SVG.Bare` class comes in handy. This class inherits directly from `SVG.Element` and makes it possible to add custom methods in a separate namespace. +For all SVG elements that are not described by SVG.js, the `SVG.Bare` class comes in handy. This class inherits directly from `SVG.Element` and makes it possible to add custom methods in a separate namespace without polluting the main `SVG.Element` namespace. Consider it your personal playground. ### element() -the `SVG.Bare` class can be instantiated with the `element()` method on any parent element: +The `SVG.Bare` class can be instantiated with the `element()` method on any parent element: ```javascript var element = draw.element('title') ``` The string value passed as the first argument is the node name that should be generated. -Additionally any existing class name can be passed as the second argument from which the element should inherit: +Additionally any existing class name can be passed as the second argument to define from which class the element should inherit: ```javascript var element = draw.element('symbol', SVG.Parent) |