Skip to content
Browse files

Selectmenu: CGL and lint fixes

  • Loading branch information...
1 parent 1b1dbd8 commit 76f335ea68982f90c45b3ec1d124434645edbd2e @fnagel fnagel committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 ui/jquery.ui.selectmenu.js
View
7 ui/jquery.ui.selectmenu.js
@@ -190,7 +190,8 @@ $.widget( "ui.selectmenu", {
return;
}
- var _position = {
+ var currentItem,
+ _position = {
of: this.button
};
@@ -198,8 +199,8 @@ $.widget( "ui.selectmenu", {
this._toggleAttr();
// do not change position if non default position options are set (needed for custom positioned popup menus)
- if ( this.items && !this.options.dropdown && this.options.position.my == "left top" && this.options.position.at == "left bottom" ) {
- var currentItem = this._getSelectedItem();
+ if ( this.items && !this.options.dropdown && this.options.position.my === "left top" && this.options.position.at === "left bottom" ) {
+ currentItem = this._getSelectedItem();
// center current item
if ( this.menu.outerHeight() < this.menu.prop( "scrollHeight" ) ) {
this.menuWrap.css( "left" , -10000 );

0 comments on commit 76f335e

Please sign in to comment.
Something went wrong with that request. Please try again.