Update std.js

This commit is contained in:
Namhyeon Go 2022-09-19 05:12:38 +09:00
parent 6898b9fda9
commit 07ee4298f7

View File

@ -358,11 +358,11 @@ function StdEventableObject() {
for (var i = 0; i < this.__events__.length; i++) {
var e = this.__events__[i];
if (e.type == event.type && typeof(e.listener) === "function") {
try {
e.listener(event, __exception__);
} catch (ex) {
this.dispatchEvent(new StdEvent("error"), ex);
}
try {
e.listener(event, __exception__);
} catch (ex) {
this.dispatchEvent(new StdEvent("error"), ex);
}
}
}
};