mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
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:
parent
bbaf9a2870
commit
416a783040
2 changed files with 1 additions and 5 deletions
|
|
@ -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
0
src/ng/rootElement.js
Normal file
Loading…
Reference in a new issue