diff options
| author | Misko Hevery | 2012-05-18 14:39:09 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2012-05-24 13:48:44 -0700 | 
| commit | 416a7830403a579cc57cf3a0198193790dcd0bc6 (patch) | |
| tree | 13491e35bdc59aeffb3fff05c7fff1ffd5e05b80 /src/jqLite.js | |
| parent | bbaf9a287022a9aa6675e4aab9894fe5bd041ad7 (diff) | |
| download | angular.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.
Diffstat (limited to 'src/jqLite.js')
| -rw-r--r-- | src/jqLite.js | 6 | 
1 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), | 
