mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-21 12:51:51 +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) {
|
forEach(events[type || event.type], function(fn) {
|
||||||
try {
|
fn.call(element, event);
|
||||||
fn.call(element, event);
|
|
||||||
} catch (e) {
|
|
||||||
// Not much to do here since jQuery ignores these anyway
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Remove monkey-patched methods (IE),
|
// 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