aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-24 12:00:03 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-24 12:00:03 -0400
commiteaadcc0eebcd6ea45523e19f79b042dc0d6a30bb (patch)
tree9c9e7703a58ca228d82a2c99a3e9106a4659415b /ui/jquery.ui.autocomplete.js
parent5f9d5c54c31546977792f4493b419f6c72fcc93e (diff)
downloadjquery-ui-eaadcc0eebcd6ea45523e19f79b042dc0d6a30bb.tar.gz
jquery-ui-eaadcc0eebcd6ea45523e19f79b042dc0d6a30bb.zip
Widget: Bind the remove event to the element, not the .widget() element.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 7bacca006..2d064834c 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -64,7 +64,7 @@ $.widget( "ui.autocomplete", {
.addClass( "ui-autocomplete-input" )
.attr( "autocomplete", "off" );
- this._on({
+ this._on( this.element, {
keydown: function( event ) {
if ( this.element.prop( "readOnly" ) ) {
suppressKeyPress = true;
@@ -191,6 +191,7 @@ $.widget( "ui.autocomplete", {
.zIndex( this.element.zIndex() + 1 )
.hide()
.data( "menu" );
+
this._on( this.menu.element, {
mousedown: function( event ) {
// prevent moving focus out of the text field