Fix style issues in core and scales

This commit is contained in:
Zach Panzarino
2016-09-15 00:23:30 +00:00
parent dd8fa78b45
commit bddd4cd94b
9 changed files with 91 additions and 106 deletions

View File

@@ -161,8 +161,8 @@ module.exports = function(Chart) {
// Function to fit a box
function fitBox(box) {
var minBoxSize = helpers.findNextWhere(minBoxSizes, function(minBoxSize) {
return minBoxSize.box === box;
var minBoxSize = helpers.findNextWhere(minBoxSizes, function(minBox) {
return minBox.box === box;
});
if (minBoxSize) {
@@ -196,8 +196,8 @@ module.exports = function(Chart) {
helpers.each(leftBoxes.concat(rightBoxes), finalFitVerticalBox);
function finalFitVerticalBox(box) {
var minBoxSize = helpers.findNextWhere(minBoxSizes, function(minBoxSize) {
return minBoxSize.box === box;
var minBoxSize = helpers.findNextWhere(minBoxSizes, function(minSize) {
return minSize.box === box;
});
var scaleMargin = {