diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2014-10-03 10:01:51 -0400 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2014-10-03 10:03:12 -0400 |
commit | 29c72fc256be3294d5dc2e0e21a69e13acb29b3a (patch) | |
tree | 47300e042ec6830cab7281ae041f308b41d7a3ed /ui | |
parent | 6b6b49f678706280c5590a5097ef9f0aca359d4b (diff) | |
download | jquery-ui-29c72fc256be3294d5dc2e0e21a69e13acb29b3a.tar.gz jquery-ui-29c72fc256be3294d5dc2e0e21a69e13acb29b3a.zip |
Menu: Remove a redundant check
Closes gh-1355
Diffstat (limited to 'ui')
-rw-r--r-- | ui/menu.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/menu.js b/ui/menu.js index 1ecc0ea8c..31263fbcf 100644 --- a/ui/menu.js +++ b/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; } |