From: adam-p Date: Thu, 7 Oct 2010 18:47:28 +0000 (-0400) Subject: Fixed erroneous attempt to use excanvas.js in IE9 X-Git-Tag: v1.0.0~639 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8b8f2d59d79021d19cf870f159aab2d8aee54fed;p=dygraphs.git Fixed erroneous attempt to use excanvas.js in IE9 --- diff --git a/dygraph.js b/dygraph.js index 4cdc196..29aebed 100644 --- a/dygraph.js +++ b/dygraph.js @@ -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); }