When launching as a thunderbird extension, with the -calendar argument

the resize function sometimes gets called before gCalendarWindow has been
initiated causing it not to work. This change should fix the problem.
This commit is contained in:
mostafah%oeone.com 2004-08-31 14:51:15 +00:00
Родитель 04ec2e5a6b
Коммит 678678acf3
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -580,7 +580,8 @@ CalendarWindow.prototype.onMouseUpCalendarViewSplitter = function calWinOnMouseU
* The resize handler, used to set the size of the views so they fit the screen.
*/
window.onresize = CalendarWindow.prototype.doResize = function calWin_doResize(){
gCalendarWindow.currentView.refresh();
if( gCalendarWindow )
gCalendarWindow.currentView.refresh();
}