Skip to content
Permalink
Browse files

Menu: Remove a redundant check

Closes gh-1355
  • Loading branch information
tjvantoll committed Oct 3, 2014
1 parent 6b6b49f commit 29c72fc256be3294d5dc2e0e21a69e13acb29b3a
Showing with 3 additions and 7 deletions.
  1. +3 −7 ui/menu.js
@@ -251,14 +251,10 @@ return $.widget( "ui.menu", {

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

0 comments on commit 29c72fc

Please sign in to comment.
You can’t perform that action at this time.