Skip to content

Commit

Permalink
Fix for infinite loop in isHiddenOrHasHiddenAncestors.
Browse files Browse the repository at this point in the history
[cappuccino#235 state:resolved]

Reviewed by me.
  • Loading branch information
Francisco Tolmasky committed Mar 21, 2009
1 parent 0b4701f commit ffe1f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AppKit/CPView.j
Expand Up @@ -1033,10 +1033,10 @@ var DOMElementPrototype = nil,
{
var view = self;

while (![view isHidden])
while (view && ![view isHidden])
view = [view superview];

return view != nil;
return view !== nil;
}

/*!
Expand Down

0 comments on commit ffe1f9c

Please sign in to comment.