From 416a7830403a579cc57cf3a0198193790dcd0bc6 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 18 May 2012 14:39:09 -0700 Subject: [PATCH] fix(jqLite): don't eat event exceptions JQuery does not catch exceptions either, and just lets them pass. This allows the exception to be shown in console. --- src/jqLite.js | 6 +----- src/ng/rootElement.js | 0 2 files changed, 1 insertion(+), 5 deletions(-) create mode 100644 src/ng/rootElement.js diff --git a/src/jqLite.js b/src/jqLite.js index 1868f565aa0b..387de47d00ff 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -559,11 +559,7 @@ function createEventHandler(element, events) { }; forEach(events[type || event.type], function(fn) { - try { - fn.call(element, event); - } catch (e) { - // Not much to do here since jQuery ignores these anyway - } + fn.call(element, event); }); // Remove monkey-patched methods (IE), diff --git a/src/ng/rootElement.js b/src/ng/rootElement.js new file mode 100644 index 000000000000..e69de29bb2d1