Skip to content

Commit 68b2213

Browse files
committed
SwingJS-site.zip update
1 parent baa9a64 commit 68b2213

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed
-1.97 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200613212819
1+
20200615125203
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200610161835
1+
20200615125203
-1.97 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200613212819
1+
20200615125140
-1.97 KB
Binary file not shown.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13420,7 +13420,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1342013420
//cl.$static$ && cl.$static$();
1342113421
if (clazz.indexOf("_.") == 0)
1342213422
J2S.setWindowVar(clazz.substring(2), cl);
13423-
applet.__Info.headless = (J2S._headless || isApp && !!cl.j2sHeadless);
13423+
applet.__Info.headless = (J2S._headless || isApp && (cl.$j2sHeadless || cl.j2sHeadless));
1342413424
if (applet.__Info.headless) {
1342513425
Clazz._isHeadless = "true";
1342613426
System.out.println("j2sApplet running headlessly");
@@ -17677,7 +17677,7 @@ function(i){
1767717677

1767817678
m$(Integer,"parseInt$S$I",
1767917679
function(s,radix){
17680-
var v = (s.indexOf(".") >= 0 ? NaN : parseInt(s, radix));
17680+
var v = (s == null || s.indexOf(".") >= 0 ? NaN : parseInt(s, radix));
1768117681
if (!isNaN(v)) {
1768217682
// check for trailing garbage
1768317683
var v1 = parseInt(s + "1", radix);
@@ -17693,7 +17693,7 @@ return v;
1769317693

1769417694
m$(Integer,"parseInt$S",
1769517695
function(s){
17696-
var v = +s;
17696+
var v = (s == null ? NaN : +s);
1769717697
if (isNaN(v))
1769817698
s= "?" + s; // just to ensure it gets trapped
1769917699
return Integer.parseInt$S$I(s, 10);

0 commit comments

Comments
 (0)