From 39afb5e81458b0978b343be49a0af0c6be4f36e2 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Thu, 31 Jul 2014 19:14:59 +0100 Subject: [PATCH] Fix trivial --- c3.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/c3.js b/c3.js index b6a69bb..a242774 100644 --- a/c3.js +++ b/c3.js @@ -1885,15 +1885,15 @@ .attr('width', $$.width) .attr('height', $$.height); $$.svg.select('#' + $$.clipIdForXAxis).select('rect') - .attr('x', function () { return $$.getXAxisClipX(); }) - .attr('y', function () { return $$.getXAxisClipY(); }) - .attr('width', function () { return $$.getXAxisClipWidth(); }) - .attr('height', function () { return $$.getXAxisClipHeight(); }); + .attr('x', generateCall($$.getXAxisClipX, $$)) + .attr('y', generateCall($$.getXAxisClipY, $$)) + .attr('width', generateCall($$.getXAxisClipWidth, $$)) + .attr('height', generateCall($$.getXAxisClipHeight, $$)); $$.svg.select('#' + $$.clipIdForYAxis).select('rect') - .attr('x', function () { return $$.getYAxisClipX(); }) - .attr('y', function () { return $$.getYAxisClipY(); }) - .attr('width', function () { return $$.getYAxisClipWidth(); }) - .attr('height', function () { return $$.getYAxisClipHeight(); }); + .attr('x', generateCall($$.getYAxisClipX, $$)) + .attr('y', generateCall($$.getYAxisClipY, $$)) + .attr('width', generateCall($$.getYAxisClipWidth, $$)) + .attr('height', generateCall($$.getYAxisClipHeight, $$)); $$.svg.select('.' + CLASS[zoomRect]) .attr('width', $$.width) .attr('height', $$.height);