izudinenchelon / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Timeplot: Stale "mouseover" events after dispose #311

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create Timeplot
2.timeplot.dispose();
3.-> Events are not disposed

What is the expected output? What do you see instead?
see below

What version of the product are you using? On what browser and what
operating system?

Current svn trunk code, Firefox 3.x on Linux

Please provide any additional information below.

After disposing and re-creating a timeplot my Firefox console is full of:

===================
Error: plot._dataSource is null
Source File: http://localhost:9999/timeplot/api/scripts/plot.js
Line: 80
===================

It seems that

SimileAjax.DOM.registerEvent(timeplotElement, "mouseover", 
mouseOverHandler);
SimileAjax.DOM.registerEvent(timeplotElement, "mousemove", 
mouseMoveHandler);

are not properly unregistered during

      this.timeplot.dispose();

Original issue reported on code.google.com by ruffmar...@googlemail.com on 3 Sep 2009 at 12:31

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:38