Formatting: formally declared variable before use in CPColor.j

Variable `isVertical` is used throughout the function
`patternColorsFromPattern` in CPColor.j despite never being declared.
In this pull request, the variable is declared formally in the variable
list before its use.
This commit is contained in:
daniel
2018-04-04 14:09:28 -07:00
parent 7cda21b60f
commit eb6d8d0bb3
+2 -1
View File
@@ -1247,7 +1247,8 @@ var patternColorsFromPattern = function(pattern, attributes, imageFactory)
bottomHeight,
centerWidthHeight,
centerIsNil,
numParts;
numParts,
isVertical;
// positions are mandatory
if (pattern.indexOf("{position}") < 0)