From: gmungoc Date: Tue, 5 Nov 2019 16:02:14 +0000 (+0000) Subject: JAL-3210 JAL-3263 redo 'Mandarin' character for JS-develop pre-applet X-Git-Tag: Release_2_11_4_0~45^2~18^2~78^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=25aa5cbe7f7d3d98f236cab3fb93197866b3bba4;p=jalview.git JAL-3210 JAL-3263 redo 'Mandarin' character for JS-develop pre-applet --- diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index ade9d87..44d93b7 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -337,7 +337,9 @@ public class Platform public static byte[] getFileBytes(File f) { - return /** @j2sNative f && f._bytes || */ + // TODO temporary doubling of 秘bytes and _bytes; + // just remove _bytes when new transpiler has been installed + return /** @j2sNative f && (f.\u79d8bytes || f._bytes) || */ null; } @@ -375,8 +377,10 @@ public class Platform } @SuppressWarnings("unused") byte[] bytes = getFileAsBytes(urlstring); + // TODO temporary doubling of 秘bytes and _bytes; + // just remove _bytes when new transpiler has been installed /** - * @j2sNative f._bytes = bytes; + * @j2sNative f.\u79d8bytes = f._bytes = bytes; */ return true; } @@ -431,7 +435,7 @@ public class Platform @SuppressWarnings("unused") ThreadGroup g = Thread.currentThread().getThreadGroup(); /** - * @j2sNative return g.html5Applet._uniqueId; + * @j2sNative return g.\u79d8html5Applet._uniqueId; * */ return null; @@ -457,7 +461,7 @@ public class Platform String id = getUniqueAppletID(); String key = "", value = ""; /** - * @j2sNative var info = g.html5Applet.__Info || {}; for (var key in info) { + * @j2sNative var info = g.\u79d8html5Applet.__Info || {}; for (var key in info) { * if (key.indexOf(prefix) == 0) { value = "" + info[key]; */