From 6808dc4b1c3f282a2c4d72b3e78b8c6b5ed33c95 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 17 Jul 2011 18:16:47 +0200 Subject: [PATCH 1/2] PathEditing example: add black stroke to paths. --- examples/Tools/PathEditing.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Tools/PathEditing.html b/examples/Tools/PathEditing.html index 247962d0..3a27d52c 100644 --- a/examples/Tools/PathEditing.html +++ b/examples/Tools/PathEditing.html @@ -30,7 +30,8 @@ var lightness = (Math.random() - 0.5) * 0.4 + 0.4; var hue = Math.random() * 360; path.style = { - fillColor: new HSLColor(hue, 1, lightness) + fillColor: new HSLColor(hue, 1, lightness), + strokeColor: 'black' }; }; From 4daffc895ac81c06b6a8f383db687d982af06a92 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 21 Jul 2011 00:01:33 +0200 Subject: [PATCH 2/2] Handlers are no longer passed to Tool#initialize(). --- src/tool/Tool.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tool/Tool.js b/src/tool/Tool.js index 5051134a..a701ccc1 100644 --- a/src/tool/Tool.js +++ b/src/tool/Tool.js @@ -54,8 +54,6 @@ var Tool = this.Tool = Base.extend(/** @lends Tool# */{ this._firstMove = true; this._count = 0; this._downCount = 0; - for (var i in handlers) - this[i] = handlers[i]; }, /**