Skip to content

Controlgroup: Add "only" position to class generator functions #1711

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 1 commit into from

Conversation

arschmitz
Copy link
Member

Fixes #14972

<option>Slow</option>
</select>
</div>
<div class="controlgroup-single-simple">
Copy link
Member

Choose a reason for hiding this comment

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

Let's rename this to controlgroup-single-button to match the one above (also update the test titles).

@scottgonzalez
Copy link
Member

Other than the one naming change, this looks good.

var options = that[ "_" + instance.widgetName + "Options" ](
children.length === 1 ?
"only" :
value
Copy link
Member

Choose a reason for hiding this comment

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

These two lines should be indented, but I'd probably put the entire ternary on a single line.

@arschmitz arschmitz closed this in 8a79fc8 Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants