diff --git a/lib/std.js b/lib/std.js index d6e6d6f..d4898ba 100644 --- a/lib/std.js +++ b/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); + } } } };