Skip to content

Commit 1e623b9

Browse files
committed
updated: value method to make sure we have a clean API for v1.1
1 parent efcd9a0 commit 1e623b9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,8 @@ $.widget("ui.selectmenu", {
629629

630630
value: function(newValue) {
631631
if (arguments.length) {
632-
// FIXME test for number is a kind of legacy support, will be remoced in v1.1
633-
// see this post for more info: https://github.com/fnagel/jquery-ui/issues#issue/33
634-
if (typeof newValue == "number") {
635-
this.index(newValue);
636-
} else if (typeof newValue == "string") {
637-
this.element[0].value = newValue;
638-
this._refreshValue();
639-
}
632+
this.element[0].value = newValue;
633+
this._refreshValue();
640634
} else {
641635
return this.element[0].value;
642636
}

0 commit comments

Comments
 (0)