aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete/categories.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-12 09:14:36 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-12 09:14:36 -0500
commit4f909c50bad9cbdf4789d272ada71c51fa1226d3 (patch)
tree754a41f9ad982dcd9be686521fb18f8d030c269b /demos/autocomplete/categories.html
parent609243b21d2530ecd5e8e19e99951decc8587285 (diff)
downloadjquery-ui-4f909c50bad9cbdf4789d272ada71c51fa1226d3.tar.gz
jquery-ui-4f909c50bad9cbdf4789d272ada71c51fa1226d3.zip
Demos, Tests: Remove use 'that' instead of 'self'. Partial fix for #5404 - remove uses of 'var self = this;'
Diffstat (limited to 'demos/autocomplete/categories.html')
-rw-r--r--demos/autocomplete/categories.html4
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 );
});
}
});