Go to file
Zev Benjamin 09cf339c2b blueslip: Handle exceptions from jQuery event handlers and $(document).ready functions
We treat these exceptions the same way we treat fatal errors: report
the error message to our server and then allow the exception to reach
the top level.

We could also override document.onerror, but don't.  There are a
couple of ramifications of this:
* Exceptions caused by event handlers directly attached to DOM
  elements aren't handled
* Exceptions caused by code at the top level that triggers an error
  (such as parse errors in our Javascript files) aren't handled

The reason we don't override document.onerror is because the
document.onerror handler has a limited interface and doesn't receive
the exception object.  It only gets the message, file, and line
number of the error.  Additionally, exceptions that we allow to
propogate out of blueslip trigger an onerror event when they're never
caught.  In order to avoid handling the error twice (once by blueslip
and once by the onerror handler), we'd have to encode the fact that
the error has already been handled in the error message, which is
pretty ugly.

(imported from commit 7f049ae519dc198a9f7cfd41fd5dd18e584bd061)
2013-03-13 10:55:34 -04:00
api twitter-bot: Fix hyphen typo in usage string. 2013-03-08 15:58:45 -05:00
assets favicon: Add an 'infinite' favicon for more than 99 messages 2013-02-15 16:18:24 -05:00
bots Move twitter-bot to api/demos/. 2013-03-08 15:58:45 -05:00
certs Add wildcard certificate for *.e.humbughq.com. 2013-01-17 18:56:39 -05:00
confirmation Introduce script to bulk-create activation URIs. 2013-02-28 14:34:18 -05:00
humbug blueslip: Handle exceptions from jQuery event handlers and $(document).ready functions 2013-03-13 10:55:34 -04:00
servers [manual] Add django-bitfield to the puppet configuration. 2013-03-12 12:51:12 -04:00
templates Show an error message to users on fatal errors 2013-03-13 10:55:34 -04:00
tools Give create db permissions to humbug postgres user 2013-03-12 12:51:12 -04:00
zephyr blueslip: Handle exceptions from jQuery event handlers and $(document).ready functions 2013-03-13 10:55:34 -04:00
.gitignore gitignore: Add .DS_Store 2013-02-06 16:31:55 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00