X Tutup
Skip to content

Commit 44b21ce

Browse files
author
zhourenjian
committed
Fixed bug that IE can not detect failing to load j2slib.z.js
1 parent b6e3a8d commit 44b21ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/net.sf.j2s.java.core/src/mozilla.addon.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ function generateScriptCallback () {
44
return function () {
55
var s = this.readyState;
66
if (s == null || s == "loaded" || s == "complete") {
7-
window["j2s.lib"].onload ();
7+
if (window["ClazzLoader"] != null) {
8+
window["j2s.lib"].onload (this);
9+
}
810
this.onreadystatechange = null;
911
this.onload = null;
1012
}

0 commit comments

Comments
 (0)
X Tutup