Item: clean up white space.

This commit is contained in:
Jonathan Puckey 2011-04-12 14:37:52 +02:00
parent 0d4517c77f
commit 8a113a1c84

View file

@ -252,7 +252,7 @@ var Item = this.Item = Base.extend({
*/ */
isEditable: function() { isEditable: function() {
var parent = this; var parent = this;
while(parent) { while (parent) {
if (parent.hidden || parent.locked) if (parent.hidden || parent.locked)
return false; return false;
parent = parent.parent; parent = parent.parent;
@ -333,7 +333,7 @@ var Item = this.Item = Base.extend({
*/ */
isDescendant: function(item) { isDescendant: function(item) {
var parent = this.parent; var parent = this.parent;
while(parent) { while (parent) {
if (parent == item) if (parent == item)
return true; return true;
parent = parent.parent; parent = parent.parent;
@ -358,7 +358,7 @@ var Item = this.Item = Base.extend({
*/ */
isAncestor: function(item) { isAncestor: function(item) {
var parent = item.parent; var parent = item.parent;
while(parent) { while (parent) {
if (parent == this) if (parent == this)
return true; return true;
parent = parent.parent; parent = parent.parent;
@ -374,7 +374,7 @@ var Item = this.Item = Base.extend({
*/ */
isGroupedWith: function(item) { isGroupedWith: function(item) {
var parent = this.parent; var parent = this.parent;
while(parent) { while (parent) {
// Find group parents. Check for parent.parent, since don't want // Find group parents. Check for parent.parent, since don't want
// top level layers, because they also inherit from Group // top level layers, because they also inherit from Group
if (parent.parent if (parent.parent