Skip to content

Commit

Permalink
travis-ify fn migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Jul 2, 2014
1 parent 3d58837 commit 58a288e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions migrations/v3.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ function convertLayer(layer) {
"stops": stops
};
} else if (textSize && textSize.fn && textSize.fn == ('exponential' || 'linear')) {
if (textSize.val) var val = convertHalo(style['text-halo-width'], textSize.val);
if (textSize.max) var max = convertHalo(style['text-halo-width'], textSize.max);
if (textSize.min) var min = convertHalo(style['text-halo-width'], textSize.min);
var val; var max; var min;
if (textSize.val) val = convertHalo(style['text-halo-width'], textSize.val);
if (textSize.max) max = convertHalo(style['text-halo-width'], textSize.max);
if (textSize.min) min = convertHalo(style['text-halo-width'], textSize.min);
style['text-halo-width'] = textSize;
style['text-halo-width']['val'] = val;
style['text-halo-width']['max'] = max;
style['text-halo-width']['min'] = min;
style['text-halo-width'].val = val;
style['text-halo-width'].max = max;
style['text-halo-width'].min = min;
}
}
}
Expand Down

0 comments on commit 58a288e

Please sign in to comment.