From c4fedcd1b3eb15c2036447cd8676f2bf2485805d Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 23 Nov 2009 11:59:00 +0000 Subject: [PATCH] initialise current and defaultAlignFrame and debug when applet is reinited after a page refresh with safari (Bug # 57663 in mantis) --- src/jalview/bin/JalviewLite.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 */ -- 1.7.10.2