aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/selectmenu_events.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-06-04 21:16:13 +0200
committerFelix Nagel <info@felixnagel.com>2013-06-04 21:16:13 +0200
commitab48ae7e302770bb45f8aa99578303b2037e8e94 (patch)
tree0de1a6fdeedbc55710b0a704762fcfc2d3e47b2a /tests/unit/selectmenu/selectmenu_events.js
parent1821517d8130c9e028da90a69dab4f7643073884 (diff)
downloadjquery-ui-ab48ae7e302770bb45f8aa99578303b2037e8e94.tar.gz
jquery-ui-ab48ae7e302770bb45f8aa99578303b2037e8e94.zip
Selectmenu tests: fix lint issues
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_events.js')
-rw-r--r--tests/unit/selectmenu/selectmenu_events.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js
index 4881e0bff..572f502e8 100644
--- a/tests/unit/selectmenu/selectmenu_events.js
+++ b/tests/unit/selectmenu/selectmenu_events.js
@@ -9,8 +9,7 @@ module( "selectmenu: events", {
asyncTest( "change", function () {
expect( 5 );
- var that = this,
- optionIndex = 1,
+ var optionIndex = 1,
button, menu, options;
this.element.selectmenu({
@@ -41,7 +40,7 @@ test( "close", function () {
expect( 4 );
this.element.selectmenu({
- close: function ( event, ui ) {
+ close: function ( event ) {
ok( event, "close event fired on close" );
equal( event.type, "selectmenuclose", "event type set to selectmenuclose" );
}
@@ -71,10 +70,10 @@ asyncTest( "focus", function () {
}
});
- button = this.element.selectmenu( "widget" ),
+ button = this.element.selectmenu( "widget" );
menu = this.element.selectmenu( "menuWidget" );
- button.simulate( "focus" )
+ button.simulate( "focus" );
setTimeout(function() {
button.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
@@ -97,7 +96,7 @@ test( "open", function () {
expect( 2 );
this.element.selectmenu({
- open: function ( event, ui ) {
+ open: function ( event ) {
ok( event, "open event fired on open" );
equal( event.type, "selectmenuopen", "event type set to selectmenuopen" );
}