By going from this.g.addEvent to Dygraph.addEvent, then when the graph is destroyed references remain alive. This results in memory leaks, and ought to be avoided. (Actually, perhaps we should remove Dygraph.addEvent altogether.)