aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-11-02 19:44:45 +0100
committerFelix Nagel <info@felixnagel.com>2011-11-02 19:44:45 +0100
commit6edc790e8cb349dbe9a1d6af0c4a05b65d00a3c2 (patch)
treed1a9867dc7264223605effc543707dce7e808c0e /ui/jquery.ui.selectmenu.js
parent02ac48f18e4f893a28db3afc85eab44700b16abc (diff)
downloadjquery-ui-6edc790e8cb349dbe9a1d6af0c4a05b65d00a3c2.tar.gz
jquery-ui-6edc790e8cb349dbe9a1d6af0c4a05b65d00a3c2.zip
Selectmenu: renaming of internal variable opened to isOpen
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index b6ec800db..f3414b087 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -138,7 +138,7 @@ $.widget( "ui.selectmenu", {
that._trigger( "change", event, { item: item } );
}
- if ( that.opened ) {
+ if ( that.isOpen ) {
event.preventDefault();
that.close( event, true);
}
@@ -157,7 +157,7 @@ $.widget( "ui.selectmenu", {
// document click closes menu
this._bind( document, {
'click': function( event ) {
- if ( this.opened && !$( event.target ).closest( "#" + this.ids.button).length ) {
+ if ( this.isOpen && !$( event.target ).closest( "#" + this.ids.button).length ) {
this.close( event );
}
}
@@ -227,13 +227,13 @@ $.widget( "ui.selectmenu", {
of: this.button
}, this.options.position ));
- this.opened = true;
+ this.isOpen = true;
this._trigger( "open", event );
}
},
close: function( event, focus ) {
- if ( this.opened ) {
+ if ( this.isOpen ) {
if ( this.options.dropdown ) {
this.button
.addClass( 'ui-corner-all' )
@@ -241,7 +241,7 @@ $.widget( "ui.selectmenu", {
}
this.menuWrap.removeClass( 'ui-selectmenu-open' );
- this.opened = false;
+ this.isOpen = false;
if ( focus ) {
this.button.focus();
@@ -286,13 +286,13 @@ $.widget( "ui.selectmenu", {
},
_move: function( key, event ) {
- if ( !this.opened ) {
+ if ( !this.isOpen ) {
this.menu.menu( "focus", event, this._getSelectedItem() );
}
this.menu.menu( key, event );
- if ( !this.opened ) {
+ if ( !this.isOpen ) {
this.menu.menu( "select", event );
}
},
@@ -302,7 +302,7 @@ $.widget( "ui.selectmenu", {
},
_toggle: function( event ) {
- if ( this.opened ) {
+ if ( this.isOpen ) {
this.close( event );
} else {
this.open( event );
@@ -317,12 +317,12 @@ $.widget( "ui.selectmenu", {
keydown: function( event ) {
switch (event.keyCode) {
case $.ui.keyCode.TAB:
- if ( this.opened ) {
+ if ( this.isOpen ) {
this.close( event );
}
break;
case $.ui.keyCode.ENTER:
- if ( this.opened ) {
+ if ( this.isOpen ) {
this.menu.menu( "select", this._getSelectedItem() );
}
event.preventDefault();