Bug Tracker

Opened 8 years ago

Closed 8 years ago

#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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledevent
Milestone: None1.next
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.