Fix for closing an already not visible window causing app to break.

This commit is contained in:
Ross Boucher committed 2009-05-13 18:19:41 -07:00
1 parent 4c31b25110
commit f4231dd890
1 file changed
+3
+3
View File
@@ -61,6 +61,9 @@
- (void)removeWindow:(CPWindow)aWindow
{
if (!aWindow._isVisible)
return;
var index = aWindow._index,
count = _windows.length - 1;