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.
This commit is contained in:
Misko Hevery 2012-05-18 14:39:09 -07:00
parent bbaf9a2870
commit 416a783040
2 changed files with 1 additions and 5 deletions

View file

@ -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),

0
src/ng/rootElement.js Normal file
View file