From: wout Date: Fri, 1 Aug 2014 18:49:36 +0000 (+0200) Subject: Updated README X-Git-Tag: 2.0.0-rc.1~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dde8acc2aaf0c186baa7e0a2433df4a39e883cb7;p=svg.js.git Updated README --- diff --git a/README.md b/README.md index 4d962d5..3919738 100755 --- a/README.md +++ b/README.md @@ -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)