summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGiovanni Giacobbi <giovanni@giacobbi.net>2011-05-30 20:05:32 +0200
committerGiovanni Giacobbi <giovanni@giacobbi.net>2011-05-30 20:05:32 +0200
commit6df9fa71d86e201b352ac29a1ea255ec8eed7401 (patch)
tree99c967a8e0aa3cf31e3ba720990cc9e25b1d0967 /ui
parent23de8de3271086c6392faf46c1c944a892967398 (diff)
downloadjquery-ui-6df9fa71d86e201b352ac29a1ea255ec8eed7401.tar.gz
jquery-ui-6df9fa71d86e201b352ac29a1ea255ec8eed7401.zip
fixed indentation
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.selectmenu.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 969eafd17..4799bfc91 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -537,7 +537,7 @@ $.widget("ui.selectmenu", {
},
select: function(event) {
- if (this._disabled(event.currentTarget)) { return false; }
+ if (this._disabled(event.currentTarget)) { return false; }
this._trigger("select", event, this._uiHash());
},
@@ -577,21 +577,21 @@ $.widget("ui.selectmenu", {
var newIndex = currIndex + amt;
// do not loop when using up key
- if (newIndex < 0) {
+ if (newIndex < 0) {
newIndex = 0;
}
if (newIndex > this._optionLis.size() - 1) {
newIndex = this._optionLis.size() - 1;
}
- //Occurs when a full loop has been made
- if (newIndex === recIndex) { return false; }
+ //Occurs when a full loop has been made
+ if (newIndex === recIndex) { return false; }
- if (this._optionLis.eq(newIndex).hasClass( this.namespace + '-state-disabled' )) {
+ if (this._optionLis.eq(newIndex).hasClass( this.namespace + '-state-disabled' )) {
// if option at newIndex is disabled, call _moveFocus, incrementing amt by one
(amt > 0) ? ++amt : --amt;
this._moveSelection(amt, newIndex);
} else {
- return this._optionLis.eq(newIndex).trigger('mouseup');
+ return this._optionLis.eq(newIndex).trigger('mouseup');
}
},
@@ -611,8 +611,8 @@ $.widget("ui.selectmenu", {
newIndex = this._optionLis.size() - 1;
}
- //Occurs when a full loop has been made
- if (newIndex === recIndex) { return false; }
+ //Occurs when a full loop has been made
+ if (newIndex === recIndex) { return false; }
var activeID = this.widgetBaseClass + '-item-' + Math.round(Math.random() * 1000);