mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Add comment to removeOn() code.
This commit is contained in:
parent
09ee9a0689
commit
ddf982a446
1 changed files with 2 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue