Skip to content

Commit 788ae01

Browse files
authored
Merge pull request #55 from BobHanson/yadav1
Yadav1
2 parents f7f45d6 + 50b0e6c commit 788ae01

File tree

9 files changed

+4137
-3213
lines changed

9 files changed

+4137
-3213
lines changed
118 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static String getJavaResource(String resourceName, boolean isJavaPath,
169169
+ (ok ? "" + sdata.length() : sdata) + "]");
170170
return (!ok ? null : !doProcess ? sdata
171171
: path.endsWith(".css") ? JSUtil.processCSS(sdata, path) : path
172-
.endsWith(".js") ? JSUtil.processJS(sdata) : sdata);
172+
.endsWith(".js") ? JSUtil.processJS(sdata, resourceName) : sdata);
173173
}
174174

175175
static void cacheFileData(String path, Object data) {
@@ -231,11 +231,13 @@ static String processCSS(String css, String path) {
231231
return css;
232232
}
233233

234-
static String processJS(String js) {
234+
static String processJS(String js, String resourceName) {
235235
try {
236236
/**
237237
* @j2sNative
238238
*
239+
*
240+
* if (js.indexOf(";//# sourceURL=") < 0) js += ";//# sourceURL=" + thisApplet._j2sPath + "/" + resourceName;
239241
* eval(js);
240242
*
241243
*/

sources/net.sf.j2s.java.core/src/swingjs/jquery/JQueryUI.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)