Commits

Chris Leonello  committed 300a7a9

Added _version parameter to excanvas and check for it for proper text support.

  • Participants
  • Parent commits c071d1e

Comments (0)

Files changed (2)

File src/excanvas.js

   CanvasGradient = CanvasGradient_;
   CanvasPattern = CanvasPattern_;
   DOMException = DOMException_;
-  _jqplotExcanvasVersion = 859;
+  G_vmlCanvasManager._version = 888;
 })();
 
 } // if

File src/jqplot.core.js

     // Convienence function that won't hang IE or FF without FireBug.
     $.jqplot.log = function() {
         if (window.console) {
-            console.log.apply(console, arguments);
+            window.console.log.apply(window.console, arguments);
         }
     };
         
             
     $.jqplot.support_canvas_text = function() {
         if (typeof $.jqplot.support_canvas_text.result == 'undefined') {
-            if (window._jqplotExcanvasVersion !== undefined && window._jqplotExcanvasVersion > 9999) {
+            if (window.G_vmlCanvasManager !== undefined && window.G_vmlCanvasManager._version > 887) {
                 $.jqplot.support_canvas_text.result = true;
             }
             else {