mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Change variable name in #isEditable() to reflect what's being checked more correctly.
This commit is contained in:
parent
9d00541987
commit
ba42295942
1 changed files with 4 additions and 4 deletions
|
@ -591,11 +591,11 @@ var Item = this.Item = Base.extend({
|
|||
* @ignore
|
||||
*/
|
||||
isEditable: function() {
|
||||
var parent = this;
|
||||
while (parent) {
|
||||
if (!parent.visible || parent.locked)
|
||||
var item = this;
|
||||
while (item) {
|
||||
if (!item.visible || item.locked)
|
||||
return false;
|
||||
parent = parent._parent;
|
||||
item = item._parent;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue