Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 416a783

Browse files
committed
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.
1 parent bbaf9a2 commit 416a783

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/jqLite.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,7 @@ function createEventHandler(element, events) {
559559
};
560560

561561
forEach(events[type || event.type], function(fn) {
562-
try {
563-
fn.call(element, event);
564-
} catch (e) {
565-
// Not much to do here since jQuery ignores these anyway
566-
}
562+
fn.call(element, event);
567563
});
568564

569565
// Remove monkey-patched methods (IE),

src/ng/rootElement.js

Whitespace-only changes.

0 commit comments

Comments
 (0)