mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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
|
* @ignore
|
||||||
*/
|
*/
|
||||||
isEditable: function() {
|
isEditable: function() {
|
||||||
var parent = this;
|
var item = this;
|
||||||
while (parent) {
|
while (item) {
|
||||||
if (!parent.visible || parent.locked)
|
if (!item.visible || item.locked)
|
||||||
return false;
|
return false;
|
||||||
parent = parent._parent;
|
item = item._parent;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue