From 6f4fd728afa6c3b590ae094b5d9e7ed716075b73 Mon Sep 17 00:00:00 2001 From: Wout Date: Thu, 13 Oct 2016 19:16:14 +0200 Subject: Fixed error in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') 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) ``` -- cgit v1.2.3