+ if (source instanceof jalview.appletgui.AlignViewport
+ && ((jalview.appletgui.AlignViewport) source).applet.currentAlignFrame.viewport == source)
+ {
+ // should be valid if it just generated an event!
+ src = ((jalview.appletgui.AlignViewport) source).applet.currentAlignFrame;
+
+ }
+ // TODO: ensure that if '_af' is specified along with a handler
+ // function, then only events from that alignFrame are sent to that
+ // function
+ }
+ executeJavascriptFunction(_listener,
+ new Object[]
+ { src, seq.getDisplayId(false), "" + (1 + i),
+ "" + seq.findPosition(i) });
+ } catch (Exception ex)
+ {
+
+ jalview.bin.Console.errPrintln(
+ "JalviewLite javascript error: Couldn't send mouseOver with handler '"
+ + _listener + "'");
+ if (ex instanceof netscape.javascript.JSException)
+ {
+ jalview.bin.Console.errPrintln("Javascript Exception: "
+ + ((netscape.javascript.JSException) ex).getMessage());
+ }
+ ex.printStackTrace();