Bug Tracker

Modify

Ticket #11924 (closed enhancement: invalid)

Opened 11 months ago

Last modified 11 months ago

Add cross-browser fix for Opera 11.x regarding onhashchange

Reported by: Krinkle Owned by: Krinkle
Priority: low Milestone: None
Component: event Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

Opera 11.1 and 11.5 (maybe more subversions) support onhashchange, but only via the window.onhashchange property, not via window.addEventListener.

I suggest we add a special handling for this event, just like we do for onbeforeunload.

Change History

comment:2 Changed 11 months ago by mikesherov

  • Owner set to Krinkle
  • Priority changed from undecided to low
  • Status changed from new to assigned
  • Component changed from unfiled to event

comment:3 Changed 11 months ago by Krinkle

You may close this as "invalid". The addEventListener is working in Opera 11.x fine. It wasn't working because my sample code omitted the third argument (usually "false") to addEventListener.

Opera doesn't give any feedback that it is required, just silently fails. Either way, as far as jQuery is concerned this is not a bug and the situation is fixed by simply passing false as the third argument (or using jQuery to begin with, in which case that wouldn't happen).

comment:4 Changed 11 months ago by rwaldron

  • Status changed from assigned to closed
  • Resolution set to invalid

Cool, thanks for looking into this!

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.