mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-11 16:35:13 +00:00
Update std.js
This commit is contained in:
parent
6898b9fda9
commit
07ee4298f7
10
lib/std.js
10
lib/std.js
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user