diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-13 08:00:45 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-13 08:00:45 -0400 |
commit | 9608e981498846b3727cc4dad723a7fa7252fd86 (patch) | |
tree | 591ab885bf28ef77be87b2121fe9ecb461e7358f /ui/jquery.ui.autocomplete.js | |
parent | e8b623207abcae500ffb3860378543906cd4e2b2 (diff) | |
download | jquery-ui-9608e981498846b3727cc4dad723a7fa7252fd86.tar.gz jquery-ui-9608e981498846b3727cc4dad723a7fa7252fd86.zip |
Widget: Rename _bind() to _on(). Partial fix for #7795 - Widget: _on and _off.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 2fb7e395c..f73fff96d 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -63,7 +63,7 @@ $.widget( "ui.autocomplete", { .addClass( "ui-autocomplete-input" ) .attr( "autocomplete", "off" ); - this._bind({ + this._on({ keydown: function( event ) { if ( this.element.prop( "readOnly" ) ) { suppressKeyPress = true; @@ -190,7 +190,7 @@ $.widget( "ui.autocomplete", { .zIndex( this.element.zIndex() + 1 ) .hide() .data( "menu" ); - this._bind( this.menu.element, { + this._on( this.menu.element, { mousedown: function( event ) { // prevent moving focus out of the text field event.preventDefault(); @@ -297,7 +297,7 @@ $.widget( "ui.autocomplete", { // turning off autocomplete prevents the browser from remembering the // value when navigating through history, so we re-enable autocomplete // if the page is unloaded before the widget is destroyed. #7790 - this._bind( this.window, { + this._on( this.window, { beforeunload: function() { this.element.removeAttr( "autocomplete" ); } |