Skip to content

Commit f859ec9

Browse files
hansonrhansonr
authored andcommitted
new transpiler for @j2sIgnore between if() and {}
1 parent f47b755 commit f859ec9

File tree

9 files changed

+201
-193
lines changed

9 files changed

+201
-193
lines changed
5.37 KB
Binary file not shown.
104 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190326062559
1+
20190404154041
5.37 KB
Binary file not shown.
104 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190326062559
1+
20190404154041

sources/net.sf.j2s.core/src/net/sf/j2s/core/Java2ScriptVisitor.java

Lines changed: 189 additions & 189 deletions
Large diffs are not rendered by default.
5.37 KB
Binary file not shown.

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11462,6 +11462,8 @@ console.log("J2S._getRawDataFromServer " + J2S._serverUrl + " for " + query);
1146211462
info.xhr = J2S.$ajax(info);
1146311463
if (!fSuccess) {
1146411464
data = J2S._xhrReturn(info.xhr);
11465+
if (data == null)
11466+
doProcess = null;
1146511467
}
1146611468
}
1146711469
if (!doProcess)
@@ -11475,6 +11477,8 @@ console.log("J2S._getRawDataFromServer " + J2S._serverUrl + " for " + query);
1147511477
}
1147611478

1147711479
J2S._xhrReturn = function(xhr) {
11480+
if (xhr.state() == "rejected")
11481+
return null;
1147811482
if (!xhr.responseText && !xhr.responseJSON || self.Clazz
1147911483
&& Clazz.instanceOf(xhr.response, self.ArrayBuffer)) {
1148011484
// Safari or error
@@ -13587,11 +13591,15 @@ if (!target) {
1358713591
return a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0
1358813592
})
1358913593
var z0 = zbase;
13594+
var z0 = zbase;
1359013595
for (var i = 0; i < a.length; i++) {
13591-
a[i][1].style.zIndex = zbase;
13596+
if (!a[i][1].ui || !a[i][1].ui.embeddingNode)
13597+
a[i][1].style.zIndex = zbase;
1359213598
zbase += 1000;
1359313599
}
13594-
z = (node.style.zIndex = (z > 0 ? zbase : z0));
13600+
z = (z > 0 ? zbase : z0);
13601+
if (!node.ui || !node.ui.embeddingNode) // could be popupMenu, with no ui
13602+
node.style.zIndex = z;
1359513603
node.style.position = "absolute";
1359613604
if (J2S._checkLoading)
1359713605
System.out.println("setting z-index to " + z + " for " + node.id);

0 commit comments

Comments
 (0)