mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Make sure selected argument is always a boolean.
This commit is contained in:
parent
a9ea10ca7f
commit
d71450c0b1
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ var Item = this.Item = Base.extend({
|
|||
child.setSelected(selected);
|
||||
}
|
||||
} else {
|
||||
if (selected != this._selected) {
|
||||
if ((selected = !!selected) != this._selected) {
|
||||
// TODO: when an item is removed or moved to another
|
||||
// document, it needs to be removed from _selectedItems
|
||||
this._selected = selected;
|
||||
|
|
Loading…
Reference in a new issue