Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d2f277

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 parent99386f8 commit9d2f277

File tree

6 files changed

+3
-5
lines changed

6 files changed

+3
-5
lines changed
-730 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241104091759
1+
20241112145321
-730 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241104091759
1+
20241112145321
-6 Bytes
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-
varf=null;
1081-
eval(funStr)
1082-
returnf;
1080+
returneval(funStr);
10831081
};
10841082

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp