Bug Tracker

Modify

Ticket #10459 (closed bug: invalid)

Opened 20 months ago

Last modified 20 months ago

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

comment:1 Changed 20 months ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to event
  • Milestone changed from None to 1.next

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.