Commit 761b5f11 authored by David Schnur's avatar David Schnur

Merge pull request #905 from anthonyryan1/master

Eliminate uses of $.browser, since it is no longer present in jQuery 1.9, and some of the cases were no longer necessary anyway.
parents f6b279ce a4ac1308
...@@ -955,7 +955,7 @@ Licensed under the MIT license. ...@@ -955,7 +955,7 @@ Licensed under the MIT license.
// accept various kinds of newlines, including HTML ones // accept various kinds of newlines, including HTML ones
// (you can actually split directly on regexps in Javascript, // (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(/<br ?\/?>|\r\n|\r/g, "\n").split("\n"); var lines = (t.label + "").replace(/<br ?\/?>|\r\n|\r/g, "\n").split("\n");
for (var j = 0; j < lines.length; ++j) { for (var j = 0; j < lines.length; ++j) {
var line = { text: lines[j] }, var line = { text: lines[j] },
...@@ -1749,8 +1749,10 @@ Licensed under the MIT license. ...@@ -1749,8 +1749,10 @@ Licensed under the MIT license.
y += line.height/2 + offset; y += line.height/2 + offset;
offset += line.height; offset += line.height;
if ($.browser.opera) { if (!!(window.opera && window.opera.version().split('.')[0] < 12)) {
// FIXME: UGLY BROWSER DETECTION // FIXME: LEGACY BROWSER FIX
// AFFECTS: Opera < 12.00
// round the coordinates since Opera // round the coordinates since Opera
// otherwise switches to more ugly // otherwise switches to more ugly
// rendering (probably non-hinted) and // rendering (probably non-hinted) and
......
...@@ -426,8 +426,6 @@ More detail and specific examples can be found in the included HTML file. ...@@ -426,8 +426,6 @@ More detail and specific examples can be found in the included HTML file.
ctx.beginPath(); ctx.beginPath();
if (Math.abs(angle - Math.PI * 2) > 0.000000001) { if (Math.abs(angle - Math.PI * 2) > 0.000000001) {
ctx.moveTo(0, 0); // Center of the pie 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 //ctx.arc(0, 0, radius, 0, angle, false); // This doesn't work properly in Opera
......
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