From 416a7830403a579cc57cf3a0198193790dcd0bc6 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 18 May 2012 14:39:09 -0700 Subject: 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 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/jqLite.js') diff --git a/src/jqLite.js b/src/jqLite.js index 1868f565..387de47d 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), -- cgit v1.2.3