Modify ↓
Ticket #10459 (closed bug: invalid)
regression: unbind namespaced event from window can create recursion in Opera
| Reported by: | trixta@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | event | Version: | 1.7b1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
If sveral namespaced events are bound to the window object and someone has used doubble whitespace to seperate the events, Opera throws an error: "Uncaught exception: RangeError: Maximum recursion depth exceeded"
Additionally all browsers add a listener for the event "undefined".
You can see an example here: http://jsfiddle.net/trixta/qGkLg/
Although it's a small issue, jQuery either should throw an error, if someone uses doubble whitespaces or should deal with doubble whitespaces.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The docs say "Multiple event types can be bound at once by including each one separated by a space:"
http://api.jquery.com/bind/
...Not multiple spaces