diff options
Diffstat (limited to 'tests/visual/menu/drilldown.html')
-rw-r--r-- | tests/visual/menu/drilldown.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/visual/menu/drilldown.html b/tests/visual/menu/drilldown.html index a2ae9e88f..781f5d88a 100644 --- a/tests/visual/menu/drilldown.html +++ b/tests/visual/menu/drilldown.html @@ -21,7 +21,7 @@ $.widget("ui.drilldown", { _init: function() { - var self = this; + var that = this; this.active = this.element.find(">ul").attr("tabindex", 0); // hide submenus and create indicator icons @@ -31,18 +31,18 @@ // disable built-in key handling input: $(), focus: function(event, ui) { - self.activeItem = ui.item; + that.activeItem = ui.item; }, select: function(event, ui) { - if (this != self.active[0]) { + if (this != that.active[0]) { return; } var nested = $(">ul", ui.item); if (nested.length) { - self._open(nested); + that._open(nested); } else { - self.element.find("h3").text(ui.item.text()); - self.options.select.apply(this, arguments); + that.element.find("h3").text(ui.item.text()); + that.options.select.apply(this, arguments); } } }); @@ -52,7 +52,7 @@ primary: "ui-icon-carat-1-w" } }).click(function() { - self.up(); + that.up(); return false; }).hide(); }, |