Commit 00232cb0 authored by olau@iola.dk's avatar olau@iola.dk

Avoid using $.browser.msie


git-svn-id: https://flot.googlecode.com/svn/trunk@233 1e0a6537-2640-0410-bfb7-f154510ff394
parent 1bb11ad9
......@@ -27,6 +27,8 @@ Bug fixes:
- Fixed problem with plugins adding options to the series objects.
- Fixed a problem introduced in 0.6 with specifying a gradient with {
brightness: x, opacity: y }.
- Don't use $.browser.msie, check for getContext on the created canvas
element instead and try to use excanvas if it's not found.
Flot 0.6
--------
......
......@@ -541,7 +541,7 @@
var c = document.createElement('canvas');
c.width = width;
c.height = height;
if ($.browser.msie) // excanvas hack
if (!c.getContext) // excanvas hack
c = window.G_vmlCanvasManager.initElement(c);
return c;
}
......@@ -555,7 +555,7 @@
if (canvasWidth <= 0 || canvasHeight <= 0)
throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight;
if ($.browser.msie) // excanvas hack
if (window.G_vmlCanvasManager) // excanvas hack
window.G_vmlCanvasManager.init_(document); // make sure everything is setup
// the canvas
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment