diff --git a/jquery.flot.js b/jquery.flot.js index 19de082..3c96a6c 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -955,7 +955,7 @@ Licensed under the MIT license. // accept various kinds of newlines, including HTML ones // (you can actually split directly on regexps in Javascript, - // but IE is unfortunately broken) + // but IE < 9 is unfortunately broken) var lines = (t.label + "").replace(/
|\r\n|\r/g, "\n").split("\n"); for (var j = 0; j < lines.length; ++j) { var line = { text: lines[j] }, @@ -1749,8 +1749,10 @@ Licensed under the MIT license. y += line.height/2 + offset; offset += line.height; - if ($.browser.opera) { - // FIXME: UGLY BROWSER DETECTION + if (!!(window.opera && window.opera.version().split('.')[0] < 12)) { + // FIXME: LEGACY BROWSER FIX + // AFFECTS: Opera < 12.00 + // round the coordinates since Opera // otherwise switches to more ugly // rendering (probably non-hinted) and diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index 5c19404..8a04533 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -426,8 +426,6 @@ More detail and specific examples can be found in the included HTML file. ctx.beginPath(); if (Math.abs(angle - Math.PI * 2) > 0.000000001) { ctx.moveTo(0, 0); // Center of the pie - } else if ($.browser.msie) { - angle -= 0.0001; } //ctx.arc(0, 0, radius, 0, angle, false); // This doesn't work properly in Opera