aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-30 18:54:03 +0100
committerwout <wout@impinc.co.uk>2012-12-30 18:54:03 +0100
commitb663ead6ee026e4c7b6f3b971e2490222c4a3a1a (patch)
tree29e660578920c7b2bbe997030be4215b711d6070
parentcfabe5671d91b9f2acd000cdd4803fd014bfef2d (diff)
downloadsvg.js-b663ead6ee026e4c7b6f3b971e2490222c4a3a1a.tar.gz
svg.js-b663ead6ee026e4c7b6f3b971e2490222c4a3a1a.zip
Updated README
-rw-r--r--README.md8
1 files changed, 0 insertions, 8 deletions
diff --git a/README.md b/README.md
index 0d23a3f..6064961 100644
--- a/README.md
+++ b/README.md
@@ -407,9 +407,7 @@ All usual events are accessible on elements:
```javascript
rect.click(function() {
-
this.fill({ color: '#f06' });
-
});
```
@@ -422,11 +420,9 @@ Svg.js has a modular structure. It is very easy to add you own methods at differ
```javascript
SVG.extend(SVG.Shape, {
-
paintRed: function() {
return this.fill({ color: 'red' });
}
-
});
```
@@ -434,11 +430,9 @@ Now all shapes will have the paintRed method available. Say we want to have the
```javascript
SVG.extend(SVG.Ellipse, {
-
paintRed: function() {
return this.fill({ color: 'orangered' });
}
-
});
```
@@ -451,7 +445,6 @@ The SVG document can be extended by using:
```javascript
SVG.extend(SVG.Doc, {
-
paintAllPink: function() {
var children = this.children();
@@ -461,7 +454,6 @@ SVG.extend(SVG.Doc, {
return this;
}
-
});
```