Skip to content

Commit 2b591f5

Browse files
hansonrhansonr
authored andcommitted
SwingJS-site update with J11 (unnecessary J11.jar; no changes)
1 parent b5af7ae commit 2b591f5

File tree

10 files changed

+10
-9
lines changed

10 files changed

+10
-9
lines changed
606 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210204103554
1+
20210208070840
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210115055845
1+
20210208070817
606 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210204103554
1+
20210208070840
606 Bytes
Binary file not shown.

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15122,7 +15122,7 @@ Clazz.newMeth = function (clazzThis, funName, funBody, modifiers) {
1512215122
else
1512315123
clazzThis.prototype[funName] = funBody;
1512415124
return funBody; // allow static calls as though they were not static
15125-
};
15125+
};
1512615126

1512715127
Clazz.newPackage = function (pkgName) {
1512815128
Clazz._Loader && Clazz._Loader.doTODO();
@@ -18086,10 +18086,11 @@ m$(Integer,"decode$S", function(n){
1808618086
// Note that Long is problematic in JavaScript
1808718087

1808818088
Clazz._setDeclared("java.lang.Long", java.lang.Long=Long=function(){
18089-
if (arguments[0] === null || typeof arguments[0] != "object")this.c$(arguments[0]);
18089+
this.c$(arguments[0]);
1809018090
});
1809118091

1809218092
decorateAsNumber(Long, "Long", "long", "J", lHCOffset);
18093+
1809318094
Long.toString=Long.toString$J=Long.toString$J$I = Long.prototype.toString=function(i, radix){
1809418095
switch(arguments.length) {
1809518096
case 2:
@@ -18100,7 +18101,7 @@ Long.toString=Long.toString$J=Long.toString$J$I = Long.prototype.toString=functi
1810018101
i = this.valueOf();
1810118102
break;
1810218103
}
18103-
return (i.length ? Long.$s(i) : i);
18104+
return (i.length ? Long.$s(i) : "" + i);
1810418105
};
1810518106

1810618107

@@ -18899,8 +18900,8 @@ m$(Long,["longValue","longValue$"],function(){return this.valueOf();});
1889918900

1890018901
m$(Long,"c$",
1890118902
function(v) {
18902-
if (typeof v != "number")
18903-
v = Long.parseLong$S$I(v, 10);
18903+
if (typeof v != "number" && typeof v != "object")
18904+
v = Long.parseLong$S$I(v, 10);
1890418905
this.valueOf=function(){return v;};
1890518906
}, 1);
1890618907

@@ -18931,7 +18932,7 @@ function(s, radix){
1893118932
m$(Long,"valueOf$J",
1893218933
function(i){
1893318934
i = Clazz.toLong(i);
18934-
var v = (i.length ? 0 : getCachedNumber(i, longs, Long, "c$$J"));
18935+
var v = (!i.length || (v = Long.$ival(i)) == Long.$lval(i) && (i = v) == i ? getCachedNumber(i, longs, Long, "c$$J") : 0);
1893518936
return (v ? v : Clazz.new_(Long.c$$J, [i]));
1893618937
}, 1);
1893718938

0 commit comments

Comments
 (0)