Skip to content

Commit 9d2f277

Browse files
committed
Jmol-j2s-site.zip, JSmolJavaExt fix
var f = null; eval(funStr) // creates f() return f; Google compresser turns this into "return null" effect was to make String.replaceAll() fail.
1 parent 99386f8 commit 9d2f277

File tree

6 files changed

+3
-5
lines changed

6 files changed

+3
-5
lines changed
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241104091759
1+
20241112145321
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241104091759
1+
20241112145321
Binary file not shown.

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,9 +1077,7 @@ for(i=0;i<arr.length-1;i++){
10771077
funStr+="\""+arr[i]+"\" + $"+orders[i]+" + ";
10781078
}
10791079
funStr+="\""+arr[i]+"\"; }";
1080-
var f=null;
1081-
eval(funStr)
1082-
return f;
1080+
return eval(funStr);
10831081
};
10841082

10851083
sp.replaceAll=function(exp,str){

0 commit comments

Comments
 (0)