mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
"for var in" is good practise in such a case, as we don't need additional functionality of Base.each().
This commit is contained in:
parent
ad335374cd
commit
2a5f885f50
1 changed files with 0 additions and 2 deletions
|
@ -164,8 +164,6 @@ var Project = this.Project = Base.extend({
|
|||
* Deselects all selected items in the project.
|
||||
*/
|
||||
deselectAll: function() {
|
||||
// TODO: is using for var i in good practice?
|
||||
// or should we use Base.each? (JP)
|
||||
for (var i in this._selectedItems)
|
||||
this._selectedItems[i].setSelected(false);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue