Merge pull request #139 from ColinEberhardt/eslint

Eslint - enforces many more rules.
This commit is contained in:
Colin Eberhardt
2015-10-07 22:26:04 +01:00
13 changed files with 143 additions and 135 deletions

View File

@@ -692,7 +692,10 @@ public class LayoutEngine {
// For a relative children, we're either using alignItems (parent) or
// alignSelf (child) in order to determine the position in the cross axis
if (child.style.positionType == CSSPositionType.RELATIVE) {
/*eslint-disable */
// This variable is intentionally re-defined as the code is transpiled to a block scope language
CSSAlign alignItem = getAlignItem(node, child);
/*eslint-enable */
if (alignItem == CSSAlign.STRETCH) {
// You can only stretch if the dimension has not already been set
// previously.