Fixed erroneous attempt to use excanvas.js in IE9
authoradam-p <pritchard.adam@gmail.com>
Thu, 7 Oct 2010 18:47:28 +0000 (14:47 -0400)
committeradam-p <pritchard.adam@gmail.com>
Thu, 7 Oct 2010 18:47:28 +0000 (14:47 -0400)
dygraph.js

index 4cdc196..29aebed 100644 (file)
@@ -2497,7 +2497,7 @@ Dygraph.createCanvas = function() {
   var canvas = document.createElement("canvas");
 
   isIE = (/MSIE/.test(navigator.userAgent) && !window.opera);
-  if (isIE) {
+  if (isIE && (typeof(G_vmlCanvasManager) != 'undefined')) {
     canvas = G_vmlCanvasManager.initElement(canvas);
   }