Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-451

JalviewLite.currentAlignFrame not set to null after page refresh on safari

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JVL-Ajax, jvlite
    • Labels:
    • Mantis ID:
      57663

      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.

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            jprocter James Procter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: