From: Wout Date: Thu, 13 Oct 2016 17:16:14 +0000 (+0200) Subject: Fixed error in README X-Git-Tag: 2.3.6~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f4fd728afa6c3b590ae094b5d9e7ed716075b73;p=svg.js.git Fixed error in README --- diff --git a/README.md b/README.md index d772263..c5587ae 100644 --- a/README.md +++ b/README.md @@ -1839,8 +1839,8 @@ This will return an instance of `SVG.BBox` containing the following values: The `SVG.BBox` has one other nifty little feature, enter the `merge()` method. With `merge()` two `SVG.BBox` instances can be merged into one new instance, basically being the bounding box of the two original bounding boxes: ```javascript -var box1 = draw.rect(100,100).move(50,50) -var box2 = draw.rect(100,100).move(200,200) +var box1 = draw.rect(100,100).move(50,50).bbox() +var box2 = draw.rect(100,100).move(200,200).bbox() var box3 = box1.merge(box2) ```