Skip to content

Fixes #37 #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

Fixes #37 #48

wants to merge 6 commits into from

Conversation

asvny
Copy link
Contributor

@asvny asvny commented Feb 14, 2017

Fixes #37

Previous PR: #39

}
return to;
};
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have extend for this type of thing, see

var opts = extend({}, defaults, options);

}

.box-bar {
width: var(--missing,calc(var(--foo1) + 100px));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's space it out width: var(--missing, calc(var(--foo1) + 100px));

.box-foo {
width: var(--missing);
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we getting rid of this?

var fallbackValue;
if(fallback) {
var cloneDecl = Object.assign({},decl,{value:fallback});
fallbackValue = resolveValue(cloneDecl, map, false,true).value;
Copy link
Owner

@MadLittleMods MadLittleMods Mar 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's space this out (sorry no eslint)

var cloneDecl = Object.assign({}, decl, { value: fallback });
fallbackValue = resolveValue(cloneDecl, map, false, true).value;

// Set the new value after we are done dealing with at-rule stuff
decl.value = valueResults.value;
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase this onto the current master and squash things down. This is already in the codebase

Copy link
Owner

@MadLittleMods MadLittleMods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments to address 😀

@MadLittleMods
Copy link
Owner

Thanks for the contribution. Closing in favor of #49 which seems to have the comments addressed and includes your commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants