From a81f1eb6987c9500f923106b9f90220ed8aca3a0 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 12 Feb 2011 18:12:25 +0100 Subject: [PATCH] Examples: update Circles.html to create a new path on every mouse down. --- examples/Tools/Circles.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/Tools/Circles.html b/examples/Tools/Circles.html index fc58b908..3095593c 100644 --- a/examples/Tools/Circles.html +++ b/examples/Tools/Circles.html @@ -31,6 +31,10 @@ path = new Path.Circle(event.downPoint, distance); path.strokeColor = 'black'; path.fillColor = 'white'; + }, + + onMouseUp: function(event) { + path = null; } }); tool.document = doc;