Commits

Chris Leonello committed afc996c

Fix for initially hidden plots (again) because I now call destroy() from replot()

  • Participants
  • Parent commits f45f74f

Comments (0)

Files changed (1)

src/jqplot.core.js

         // Releases all resources occupied by the plot
         this.destroy = function() {
             this.canvasManager.freeAllCanvases();
-            if (this.eventCanvas) {
+            if (this.eventCanvas && this.eventCanvas._elem) {
                 this.eventCanvas._elem.unbind();
             }
             // Couple of posts on Stack Overflow indicate that empty() doesn't