Skip to content

Commit 2f8e706

Browse files
hansonrhansonr
authored andcommitted
fix for applet ready overriding applet._appletPanel
1 parent 5ee0a5f commit 2f8e706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ if (database == "_" && J2S._serverUrl.indexOf("//your.server.here/") >= 0) {
13571357
// J2S.readyCallback, but we can call J2S.readyCallback. Go figure...
13581358
if (isReady) {
13591359
// when leaving page, Java applet may be dead
1360-
applet._appletPanel = (javaAppletPanel || javaApplet);
1360+
applet._appletPanel || (applet._appletPanel = (javaAppletPanel || javaApplet));
13611361
applet._applet = javaApplet;
13621362
!applet.getApp && (applet.getApp = function(){ applet._setThread();return javaApplet });
13631363
J2S.$css(J2S.$(applet, 'appletdiv'), { 'background-image': '' });
@@ -2780,7 +2780,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
27802780
base[base.length - 1] = codePath;
27812781
codePath = base.join("/");
27822782
}
2783-
applet._j2sFullPath = codePath.substring(0, codePath.length);
2783+
applet._j2sFullPath = codePath.substring(0, codePath.length - 1);
27842784
if (applet.__Info.code)
27852785
codePath += applet.__Info.code.replace(/\./g, "/");
27862786
codePath = codePath.substring(0,

0 commit comments

Comments
 (0)