diff options
author | wout <wout@impinc.co.uk> | 2014-01-25 15:29:16 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-01-25 15:29:16 +0100 |
commit | d0dcc30d4c82c28589f4c16c9e6a02ee7e635057 (patch) | |
tree | 40e787238e66a2d4ea6eb0c00bc5e4555bd5311e | |
parent | 4eb82d6002258266717ab2edf1a686c3e2fb31fd (diff) | |
download | svg.js-d0dcc30d4c82c28589f4c16c9e6a02ee7e635057.tar.gz svg.js-d0dcc30d4c82c28589f4c16c9e6a02ee7e635057.zip |
Fix in README
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |