From ddf982a446476446cf28b5524007019e40e67081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 15 Dec 2012 02:40:47 -0800 Subject: [PATCH] Add comment to removeOn() code. --- src/tool/Tool.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tool/Tool.js b/src/tool/Tool.js index 087ed863..ef30603e 100644 --- a/src/tool/Tool.js +++ b/src/tool/Tool.js @@ -325,6 +325,8 @@ var Tool = this.Tool = PaperScopeItem.extend(/** @lends Tool# */{ if (set) { for (var id in set) { var item = set[id]; + // If we remove this item, we also need to erase it from all + // other sets. for (var key in sets) { var other = sets[key]; if (other && other != set && other[item._id])