From e1ec6f8ebb509b636840dfad11aa062c9877beac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Tue, 13 Sep 2011 00:24:43 +0200 Subject: [PATCH] Menu: Refactor to get rid of var that. Cleanup some odd formattings and unneeded temp vars --- tests/visual/menu/menu.html | 12 +++++------ ui/jquery.ui.menu.js | 40 ++++++++++++++++++------------------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index 5720d04d9..195488184 100644 --- a/tests/visual/menu/menu.html +++ b/tests/visual/menu/menu.html @@ -16,7 +16,7 @@ right: 10, top: 10 }).appendTo(document.body).themeswitcher(); - + function create() { menus.menu({ select: function(event, ui) { @@ -24,8 +24,8 @@ } }); } - - var menus = $("#menu1, #menu2, #menu3, #menu4"); + + var menus = $("#menu1, #menu2, #menu3, .menu4"); create(); $("#toggle-destroy").toggle(function() { @@ -41,11 +41,11 @@ - + -