Skip to content

Conversation

tjvantoll
Copy link
Member

Fixes #10644

@jzaefferer
Copy link
Member

Looks good to me.

@tjvantoll tjvantoll closed this in 6b6b49f Oct 3, 2014
@@ -251,7 +251,7 @@ return $.widget( "ui.menu", {

if ( match.length ) {
this.focus( event, match );
if ( match.length > 1 ) {
if ( match.length > 0 ) {
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't we typically just write if ( match.length )?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, I'm wondering if this entire if check (and an else) can go away because the same thing is checked two lines earlier.

Copy link
Member Author

Choose a reason for hiding this comment

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

@scottgonzalez Yeah this works fine with this check removed. Good catch. #1355

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