From: jprocter Date: Mon, 23 Nov 2009 11:59:00 +0000 (+0000) Subject: initialise current and defaultAlignFrame and debug when applet is reinited after... X-Git-Tag: Release_2_5~152 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c4fedcd1b3eb15c2036447cd8676f2bf2485805d;p=jalview.git initialise current and defaultAlignFrame and debug when applet is reinited after a page refresh with safari (Bug # 57663 in mantis) --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index f23cbde..7ae85dc 100755 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -295,13 +295,13 @@ public class JalviewLite extends Applet * AlignFrame if the applet is started as embedded on the page and then * afterwards a new view is created. */ - public static AlignFrame currentAlignFrame; + public static AlignFrame currentAlignFrame=null; /** * This is the first frame to be displayed, and does not change. API calls * will default to this instance if currentAlignFrame is null. */ - AlignFrame initialAlignFrame; + AlignFrame initialAlignFrame=null; boolean embedded = false; @@ -310,13 +310,14 @@ public class JalviewLite extends Applet public boolean jmolAvailable = false; - public static boolean debug; + public static boolean debug=false; /** * init method for Jalview Applet */ public void init() { + /** * turn on extra applet debugging */