Skip to content

Commit 3abd8ba

Browse files
committed
Change unhandledrejection docs example to use assignment (see #424)
1 parent 798d219 commit 3abd8ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ For example, the `RSVP.js library
263263

264264
.. code-block:: javascript
265265
266-
window.addEventListener('unhandledrejection', function(evt) {
266+
window.onunhandledrejection = function(evt) {
267267
Raven.captureException(evt.reason);
268-
});
268+
};
269269
270270
Please consult your promise library documentation on how to hook into its global unhandled rejection handler, if it exposes one.
271271

0 commit comments

Comments
 (0)