Menu: Remove a redundant check

Closes gh-1355
This commit is contained in:
TJ VanToll
2014-10-03 10:01:51 -04:00
parent 6b6b49f678
commit 29c72fc256

View File

@@ -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;
}