Skip to content

Commit 29c72fc

Browse files
committed
Menu: Remove a redundant check
Closes gh-1355
1 parent 6b6b49f commit 29c72fc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ui/menu.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,10 @@ return $.widget( "ui.menu", {
251251

252252
if ( match.length ) {
253253
this.focus( event, match );
254-
if ( match.length > 0 ) {
255-
this.previousFilter = character;
256-
this.filterTimer = this._delay(function() {
257-
delete this.previousFilter;
258-
}, 1000 );
259-
} else {
254+
this.previousFilter = character;
255+
this.filterTimer = this._delay(function() {
260256
delete this.previousFilter;
261-
}
257+
}, 1000 );
262258
} else {
263259
delete this.previousFilter;
264260
}

0 commit comments

Comments
 (0)