aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2014-10-03 10:01:51 -0400
committerTJ VanToll <tj.vantoll@gmail.com>2014-10-03 10:03:12 -0400
commit29c72fc256be3294d5dc2e0e21a69e13acb29b3a (patch)
tree47300e042ec6830cab7281ae041f308b41d7a3ed /ui
parent6b6b49f678706280c5590a5097ef9f0aca359d4b (diff)
downloadjquery-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.js10
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;
}