From ba422959425811e1fee7f3c0b0e73cc07a9705c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 29 May 2011 19:22:59 +0100 Subject: [PATCH] Change variable name in #isEditable() to reflect what's being checked more correctly. --- src/item/Item.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index d1e9fc03..d9911f06 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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; },