Skip to content

Commit

Permalink
Small minification
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed May 3, 2012
1 parent 6291008 commit 0618b3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
8 changes: 3 additions & 5 deletions js/highcharts.src.js
Expand Up @@ -2716,16 +2716,14 @@ SVGRenderer.prototype = {
// inside this container will be drawn at subpixel precision. In order to draw
// sharp lines, this must be compensated for. This doesn't seem to work inside
// iframes though (like in jsFiddle).
var subPixelFix, rect, leftCorrection, topCorrection;
var subPixelFix, rect;
if (isFirefox && container.getBoundingClientRect) {
renderer.subPixelFix = subPixelFix = function () {
css(container, { left: 0, top: 0 });
rect = container.getBoundingClientRect();
leftCorrection = 1 - (rect.left % 1);
topCorrection = 1 - (rect.top % 1);
css(container, {
left: (leftCorrection < 1 ? leftCorrection : 0) + PX,
top: (topCorrection < 1 ? topCorrection : 0) + PX
left: (mathCeil(rect.left) - rect.left) + PX,
top: (mathCeil(rect.top) - rect.top) + PX
});
};

Expand Down
8 changes: 3 additions & 5 deletions js/highstock.src.js
Expand Up @@ -2716,16 +2716,14 @@ SVGRenderer.prototype = {
// inside this container will be drawn at subpixel precision. In order to draw
// sharp lines, this must be compensated for. This doesn't seem to work inside
// iframes though (like in jsFiddle).
var subPixelFix, rect, leftCorrection, topCorrection;
var subPixelFix, rect;
if (isFirefox && container.getBoundingClientRect) {
renderer.subPixelFix = subPixelFix = function () {
css(container, { left: 0, top: 0 });
rect = container.getBoundingClientRect();
leftCorrection = 1 - (rect.left % 1);
topCorrection = 1 - (rect.top % 1);
css(container, {
left: (leftCorrection < 1 ? leftCorrection : 0) + PX,
top: (topCorrection < 1 ? topCorrection : 0) + PX
left: (mathCeil(rect.left) - rect.left) + PX,
top: (mathCeil(rect.top) - rect.top) + PX
});
};

Expand Down
8 changes: 3 additions & 5 deletions js/parts/SvgRenderer.js
Expand Up @@ -1032,16 +1032,14 @@ SVGRenderer.prototype = {
// inside this container will be drawn at subpixel precision. In order to draw
// sharp lines, this must be compensated for. This doesn't seem to work inside
// iframes though (like in jsFiddle).
var subPixelFix, rect, leftCorrection, topCorrection;
var subPixelFix, rect;
if (isFirefox && container.getBoundingClientRect) {
renderer.subPixelFix = subPixelFix = function () {
css(container, { left: 0, top: 0 });
rect = container.getBoundingClientRect();
leftCorrection = 1 - (rect.left % 1);
topCorrection = 1 - (rect.top % 1);
css(container, {
left: (leftCorrection < 1 ? leftCorrection : 0) + PX,
top: (topCorrection < 1 ? topCorrection : 0) + PX
left: (mathCeil(rect.left) - rect.left) + PX,
top: (mathCeil(rect.top) - rect.top) + PX
});
};

Expand Down

0 comments on commit 0618b3b

Please sign in to comment.