Skip to content
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

cannot set beautify to false. #8

Open
yezhongqiang opened this issue Aug 12, 2019 · 0 comments
Open

cannot set beautify to false. #8

yezhongqiang opened this issue Aug 12, 2019 · 0 comments

Comments

@yezhongqiang
Copy link

beautify option in bootstrap token is true by default, if users want to set it to false, it doesn't work because this code:
/*
Appends only truthy values that are not promises.
*/
_appendOption: function(options, attributeName) {
let attrValue = this.get(attributeName);
if (attrValue && typeof attrValue.then !== 'function') {
options[attributeName] = attrValue;
}
return options;
},

attrValue will be false when set beautify to be false, then the if check will by pass the assignment, which causes unable to set beautify option.

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

No branches or pull requests

2 participants