Skip to content

Commit

Permalink
Menu: Remove a redundant check
Browse files Browse the repository at this point in the history
Closes gh-1355
  • Loading branch information
tjvantoll committed Oct 3, 2014
1 parent 6b6b49f commit 29c72fc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ui/menu.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -251,14 +251,10 @@ return $.widget( "ui.menu", {


if ( match.length ) { if ( match.length ) {
this.focus( event, match ); this.focus( event, match );
if ( match.length > 0 ) { this.previousFilter = character;
this.previousFilter = character; this.filterTimer = this._delay(function() {
this.filterTimer = this._delay(function() {
delete this.previousFilter;
}, 1000 );
} else {
delete this.previousFilter; delete this.previousFilter;
} }, 1000 );
} else { } else {
delete this.previousFilter; delete this.previousFilter;
} }
Expand Down

0 comments on commit 29c72fc

Please sign in to comment.