diff options
author | Felix Nagel <info@felixnagel.com> | 2012-05-24 18:54:47 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-05-24 18:54:47 +0200 |
commit | 37a80477c0fbd272b91d9b3cf6bcdc7903655e79 (patch) | |
tree | b3159e71fcde5069e3a91b9e084f311219d10718 /tests/unit/selectmenu/selectmenu_events.js | |
parent | 7345e4304884021f7cfc499b30cc2147f9501bdb (diff) | |
download | jquery-ui-37a80477c0fbd272b91d9b3cf6bcdc7903655e79.tar.gz jquery-ui-37a80477c0fbd272b91d9b3cf6bcdc7903655e79.zip |
Selectmenu: small fixes for lint tests
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_events.js')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_events.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js index d8ffecbfb..eb15fea0a 100644 --- a/tests/unit/selectmenu/selectmenu_events.js +++ b/tests/unit/selectmenu/selectmenu_events.js @@ -46,7 +46,9 @@ test("close", function () { test("focus", function () { expect(4); - var counter = 0; + var counter = 0, + button, + menu; this.element.selectmenu({ focus: function (event, ui) { @@ -60,8 +62,8 @@ test("focus", function () { } }); - var button = this.element.selectmenu("widget").parent(), - menu = this.element.selectmenu("menuWidget").parent(); + button = this.element.selectmenu("widget").parent(); + menu = this.element.selectmenu("menuWidget").parent(); button.find("a").simulate( "focus" ).simulate( "click" ); menu.find(".ui-menu-item").simulate("mouseover"); |