Skip to main content

Bug Tracker

Side navigation

#10459 closed bug (invalid)

Opened October 09, 2011 12:37PM UTC

Closed October 09, 2011 04:53PM UTC

regression: unbind namespaced event from window can create recursion in Opera

Reported by: trixta@trixta.de 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.

Attachments (0)
Change History (1)

Changed October 09, 2011 04:53PM UTC by rwaldron comment:1

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