Permalink
Browse files

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.
  • Loading branch information...
mhevery committed May 18, 2012
1 parent bbaf9a2 commit 416a7830403a579cc57cf3a0198193790dcd0bc6
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/jqLite.js
  2. 0 src/ng/rootElement.js
View
@@ -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),
View
No changes.

0 comments on commit 416a783

Please sign in to comment.