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
*/
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;
},