diff options
Diffstat (limited to 'demos/autocomplete/categories.html')
-rw-r--r-- | demos/autocomplete/categories.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html index 2eead8ad2..902867478 100644 --- a/demos/autocomplete/categories.html +++ b/demos/autocomplete/categories.html @@ -22,14 +22,14 @@ <script> $.widget( "custom.catcomplete", $.ui.autocomplete, { _renderMenu: function( ul, items ) { - var self = this, + var that = this, currentCategory = ""; $.each( items, function( index, item ) { if ( item.category != currentCategory ) { ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" ); currentCategory = item.category; } - self._renderItem( ul, item ); + that._renderItem( ul, item ); }); } }); |