Commits

Chris Leonello committed 9c7fb10

Removed garbage collection code. Doesn't appear to be needed with latest DOM leaks fixed. Added version property to jqplot namespace.

  • Participants
  • Parent commits 4d3348d

Comments (0)

Files changed (1)

src/jqplot.core.js

         parent.removeChild( parent.firstChild );
       }
     };
-    
-    // // Memory Leaks patch : garbage collector
-    // $.gcInit = function() {
-    //   var gc = $("<div id='gc_jqPlotSalsaGarbage' style='display:none;visibility:hidden;'></div>");
-    //   $("body").append(gc);
-    //   $._gc = gc;
-    // };
 
-    // $.gcCollect = function(elem) {
-    //   $._gc.append(elem);
-    // };
-    
-    // $.gcClear = function() {
-    //   if ($.browser.msie) {
-    //     $._gc.children().each(function() {
-    //       this.outerHTML = "";
-    //     });
-    //   }
-      
-    //   $._gc.empty();
-    // };
-    
-    // $(document).ready(function() {
-    //   $.gcInit();
-    // });
 
     /**
      * Class: $.jqplot
         }
     };
 
+    $.jqplot.version = "@VERSION";
+
     // canvas manager to reuse canvases on the plot.
     // Should help solve problem of canvases not being freed and
     // problem of waiting forever for firefox to decide to free memory.