Sometimes closed popups are wrongly detected as opened. ( http://piro.sakura.ne.jp/cgi-bin/bbs.cgi?2801 )

This commit is contained in:
SHIMODA Hiroshi 2010-12-03 13:16:30 +09:00
parent f3105942c4
commit 8e48a5e712

View File

@ -1746,7 +1746,7 @@ catch(e) {
TreeStyleTabService._shownPopups = TreeStyleTabService._shownPopups.filter(function(aItem) {
if (typeof aItem == 'string')
aItem = document.getElementById(aItem);
return aItem && aItem.boxObject && ((aItem.boxObject.width || aItem.boxObject.height) && aItem.boxObject.popupState != 'closed');
return aItem && aItem.boxObject && ((aItem.boxObject.width || aItem.boxObject.height) && aItem.state != 'closed');
});
return TreeStyleTabService._shownPopups.length > 0;
},