// remove any handlers that might be hanging around from an earlier instance
try
{
- JSObject scriptObject = JSObject.getWindow(this);
+ if (getAppletContext() instanceof sun.plugin.javascript.JSContext) {
+ if (debug)
+ {
+ System.err.println("Applet context implements JSContext - should have callback support!");
+ }
+ }
+ JSObject scriptObject = JSObject.getWindow(this);
} catch (Exception ex)
{
System.err