aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-01-25 15:29:16 +0100
committerwout <wout@impinc.co.uk>2014-01-25 15:29:16 +0100
commitd0dcc30d4c82c28589f4c16c9e6a02ee7e635057 (patch)
tree40e787238e66a2d4ea6eb0c00bc5e4555bd5311e
parent4eb82d6002258266717ab2edf1a686c3e2fb31fd (diff)
downloadsvg.js-d0dcc30d4c82c28589f4c16c9e6a02ee7e635057.tar.gz
svg.js-d0dcc30d4c82c28589f4c16c9e6a02ee7e635057.zip
Fix in README
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2c1507a..c9cbb6e 100644
--- a/README.md
+++ b/README.md
@@ -789,7 +789,7 @@ draw.each(function(i, children) {
Elements can be moved between parents via the `add()` method on any parent:
```javascript
-var rect = draw.rect()
+var rect = draw.rect(100, 100)
var group = draw.group()
group.add(rect) //-> returns group
@@ -809,7 +809,7 @@ Similarly to the `add()` method on a parent element, elements have the `addTo()`
rect.addTo(group) //-> returns rect
```
-### AddTo
+### PutIn
Similarly to the `put()` method on a parent element, elements have the `putIn()` method:
```javascript