Avoid using $.browser.msie

git-svn-id: https://flot.googlecode.com/svn/trunk@233 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 16 years ago
parent 1bb11ad9ce
commit 00232cb0d2

@ -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

Loading…
Cancel
Save