Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Prototype adapter: removeEvent doesn't remove all events #290

Closed
highslide-software opened this Issue · 1 comment

2 participants

Torstein Hønsi Erik Olsson
Torstein Hønsi

Steps to reproduce:

  1. Open http://jsfiddle.net/highcharts/8yhz3/
  2. Click "Destroy"
  3. Drag middle bar to resize the demo iframe
  4. Errors are thrown because the resize event handler is not properly removed.

To fix it, set up a unit test on adding and removing events on window, DOM objects as well as Highcharts object. Test this with element parameter, element + event name and element + event name + handler.

Erik Olsson

Events on 'window' where mistaken for custom events and the wrong stopObserving method was used.

Erik Olsson eolsson closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.