Details
Description
AJAX apps using the .currentAlignFrame to detect when an alignment window is open don't work properly after a page refresh (which closes any views opened using the applet API).
Comment from Bernd Brandt:
I just noted the following issue with JalviewLite (Automated Build)
with Safari on Mac, it could be a more general issue related to wrong
browser handling:
if i reload the web-page, applets close; so also the JV applet.
however, even now there is not any JV window open, the
currentAlignFrame remains.
so
if(document.applets.Jalview.currentAlignFrame)
remains true, though no window is there. The way so "solve" this issue
is just to open JV, and then close it properly.
However, the "if" is of course used to check if the web-user has a JV frame ;-)
****** ADDITIONAL INFORMATION ******
fix is probably to make sure that any call to the .init method explicitly nulls the currentAlignFrame object reference.. since it is static it doesn't get reinited after the first time the applet is inited, and it persists after the page refresh.
Comment from Bernd Brandt:
I just noted the following issue with JalviewLite (Automated Build)
with Safari on Mac, it could be a more general issue related to wrong
browser handling:
if i reload the web-page, applets close; so also the JV applet.
however, even now there is not any JV window open, the
currentAlignFrame remains.
so
if(document.applets.Jalview.currentAlignFrame)
remains true, though no window is there. The way so "solve" this issue
is just to open JV, and then close it properly.
However, the "if" is of course used to check if the web-user has a JV frame ;-)
****** ADDITIONAL INFORMATION ******
fix is probably to make sure that any call to the .init method explicitly nulls the currentAlignFrame object reference.. since it is static it doesn't get reinited after the first time the applet is inited, and it persists after the page refresh.