aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHans Hillen <hans.hillen@gmail.com>2011-04-15 20:31:43 +0200
committerHans Hillen <hans.hillen@gmail.com>2011-04-15 20:31:43 +0200
commite448cd076153500f178878abfa7db7631d452ad8 (patch)
tree855b48217bbf79e9f30647ac42c355a7521bbe03 /tests
parentc6cbd8143b32e496c48bc4dfbae192db71bf9492 (diff)
downloadjquery-ui-e448cd076153500f178878abfa7db7631d452ad8.tar.gz
jquery-ui-e448cd076153500f178878abfa7db7631d452ad8.zip
Added icon removal to _destroy
Diffstat (limited to 'tests')
-rw-r--r--tests/visual/menu/menubar.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js
index 7fb3aea36..453f5fae7 100644
--- a/tests/visual/menu/menubar.js
+++ b/tests/visual/menu/menubar.js
@@ -129,6 +129,7 @@ $.widget("ui.menubar", {
}
});
},
+
_destroy : function() {
var items = this.element.children("li")
.removeClass("ui-menubar-item")
@@ -138,17 +139,18 @@ $.widget("ui.menubar", {
this.element.removeClass('ui-menubar ui-widget-header ui-helper-clearfix').removeAttr("role", "menubar").unbind(".menubar");;
items.unbind("focusin focusout click focus mouseenter keydown");
- items
- .removeClass("ui-button ui-widget ui-button-text-only ui-menubar-link")
+ items
+ .removeClass("ui-button ui-widget ui-button-text-only ui-menubar-link ui-state-default")
.removeAttr("role", "menuitem")
.removeAttr("aria-haspopup", "true")
.children("span.ui-button-text").each(function(i, e) {
var item = $(this);
item.parent().html(item.html());
- });
- $(document).unbind(".menubar");
+ })
+ .end()
+ .children(".ui-icon").remove();
- //TODO remove icons
+ $(document).unbind(".menubar");
this.element.find(":ui-menu").menu("destroy")
.show()