Skip to content
Permalink
Browse files

Autocomplete: Fix for #5154 - cleanup

  • Loading branch information
jzaefferer committed Feb 10, 2010
1 parent 4cea329 commit 84f7c90fc82fa551f12122f0672775a5f7076933
Showing with 0 additions and 3 deletions.
  1. +0 −3 ui/jquery.ui.autocomplete.js
@@ -257,15 +257,12 @@ $.widget( "ui.autocomplete", {
},

_move: function( direction, event ) {
console.log("move " + direction + " with event " + event)
if ( !this.menu.element.is(":visible") ) {
console.log("move, menu not visible")
this.search( null, event );
return;
}
if ( this.menu.first() && /^previous/.test(direction) ||
this.menu.last() && /^next/.test(direction) ) {
console.log("move, first or last")
this.element.val( this.term );
this.menu.deactivate();
return;

0 comments on commit 84f7c90

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