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

Commit

Permalink
fix(jqLite): don't eat event exceptions
Browse files Browse the repository at this point in the history
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 24, 2012
1 parent bbaf9a2 commit 416a783
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/jqLite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Empty file added src/ng/rootElement.js
Empty file.

0 comments on commit 416a783

Please sign in to comment.