aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisko Hevery2012-05-18 14:39:09 -0700
committerMisko Hevery2012-05-24 13:48:44 -0700
commit416a7830403a579cc57cf3a0198193790dcd0bc6 (patch)
tree13491e35bdc59aeffb3fff05c7fff1ffd5e05b80
parentbbaf9a287022a9aa6675e4aab9894fe5bd041ad7 (diff)
downloadangular.js-416a7830403a579cc57cf3a0198193790dcd0bc6.tar.bz2
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.
-rw-r--r--src/jqLite.js6
-rw-r--r--src/ng/rootElement.js0
2 files changed, 1 insertions, 5 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 1868f565..387de47d 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -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),
diff --git a/src/ng/rootElement.js b/src/ng/rootElement.js
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/ng/rootElement.js