diff options
author | Felix Nagel <info@felixnagel.com> | 2011-02-17 02:16:22 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-02-17 02:16:22 +0100 |
commit | 1e623b94b0dfcf116b6b1397378f874f43f46536 (patch) | |
tree | e7dd669770425b1a3f6a708f4542a6aa271309c2 | |
parent | efcd9a0c75c947015ea17aed25d19f5bc2ef3b42 (diff) | |
download | jquery-ui-1e623b94b0dfcf116b6b1397378f874f43f46536.tar.gz jquery-ui-1e623b94b0dfcf116b6b1397378f874f43f46536.zip |
updated: value method to make sure we have a clean API for v1.1
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index af53d3fd4..05d61c4ef 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -629,14 +629,8 @@ $.widget("ui.selectmenu", { value: function(newValue) { if (arguments.length) { - // FIXME test for number is a kind of legacy support, will be remoced in v1.1 - // see this post for more info: https://github.com/fnagel/jquery-ui/issues#issue/33 - if (typeof newValue == "number") { - this.index(newValue); - } else if (typeof newValue == "string") { - this.element[0].value = newValue; - this._refreshValue(); - } + this.element[0].value = newValue; + this._refreshValue(); } else { return this.element[0].value; } |