Skip to content

Commit f920b75

Browse files
committed
various changes
1 parent f9e29ac commit f920b75

File tree

8 files changed

+17
-11
lines changed

8 files changed

+17
-11
lines changed
970 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20251014103610
1+
20251109202645
970 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20251014103610
1+
20251109202645
47 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/site-resources_4.2/jsmol/js/JSmolJavaExt.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// (local scope) Clazz_xxx, allowing them to be further compressed using
1414
// Google Closure Compiler in that same ANT task.
1515

16+
// BH 2025.11.10 removing override of String.prototype.concat
1617
// BH 2023.07.08 NaN.0 fix
1718
// BH 10/16/2017 6:51:20 AM fixing range error for MSIE in prepareCallback setting arguments.length < 0
1819
// BH 10/13/2017 7:03:28 AM fix for String.initialize(bytes) applying bytes as arguments
@@ -1392,13 +1393,13 @@ for(var i=0;i<srcEnd-srcBegin;i++){
13921393
dst[dstBegin+i]=this.charAt(srcBegin+i);
13931394
}
13941395
};
1395-
sp.$concat=sp.concat;
1396-
sp.concat=function(s){
1397-
if(s==null){
1398-
throw new NullPointerException();
1399-
}
1400-
return this.$concat(s);
1401-
};
1396+
//sp.$concat=sp.concat;
1397+
//sp.concat=function(s){
1398+
//if(s==null){
1399+
//throw new NullPointerException();
1400+
//}
1401+
//return this.$concat(s);
1402+
//};
14021403

14031404
sp.$lastIndexOf=sp.lastIndexOf;
14041405
sp.lastIndexOf=function(s,last){

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// j2sApplet.js BH = Bob Hanson hansonr@stolaf.edu
22

3+
// BH 2025.10.28 moves template.html getClassList to here as J2S.getClassList(optionalName)
34
// BH 2025.10.15 allowing ../../.... at the start of Info.j2sPath
45
// BH 2025.08.16 allow loading file:/// from current directory
56
// BH 2025.04.20 adds Info.coreAssets:"coreAssets.zip"
@@ -2362,6 +2363,11 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
23622363

23632364
var __profiling;
23642365

2366+
J2S.getClassList = function(name){
2367+
name || (name = '_j2sclasslist.txt');
2368+
J2S._saveFile(name, Clazz.ClassFilesLoaded.sort().join('\n'));
2369+
}
2370+
23652371
J2S.getProfile = function(doProfile) {
23662372
if (__profiling || arguments.length == 1 && !doProfile) {
23672373
var s = Clazz.getProfile();

sources/net.sf.j2s.java.core/template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
<body>
2323
<script>
2424
SwingJS.getApplet('testApplet', Info)
25-
getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
2625
</script>
2726
<div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
2827
<div spellcheck="false" id="sysoutdiv" contentEditable="true" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
29-
This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a> <a href='javascript:J2S.getProfile()'>start/stop profiling</a><br>see <a href=___j2sflags.htm>___j2sflags.htm</a> for SwingJS URL command-line options<br><a href="javascript:getClassList()">get _j2sClassList.txt</a>
28+
This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a> <a href='javascript:J2S.getProfile()'>start/stop profiling</a><br>see <a href=___j2sflags.htm>___j2sflags.htm</a> for SwingJS URL command-line options<br><a href="javascript:J2S.getClassList()">get _j2sclasslist.txt</a>
3029
</div>
3130
</body>
3231
</html>

0 commit comments

Comments
 (0)