Change variable name in #isEditable() to reflect what's being checked more correctly.

This commit is contained in:
Jürg Lehni 2011-05-29 19:22:59 +01:00
parent 9d00541987
commit ba42295942

View file

@ -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;
}, },