1
0
mirror of synced 2024-11-29 16:16:02 +03:00

Added ability to get the dropdown element

This commit is contained in:
Jeff Turcotte 2013-05-31 11:56:20 -04:00
parent 75a062fc0f
commit ae71175dbe

View File

@ -2953,7 +2953,7 @@ the specific language governing permissions and limitations under the Apache Lic
opts,
select2,
value, multiple,
allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "readonly", "positionDropdown", "data"],
allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "dropdown", "onSortStart", "onSortEnd", "enable", "readonly", "positionDropdown", "data"],
valueMethods = ["val", "opened", "isFocused", "container", "data"];
this.each(function () {
@ -2981,6 +2981,8 @@ the specific language governing permissions and limitations under the Apache Lic
if (select2 === undefined) return;
if (args[0] === "container") {
value = select2.container;
} else if (args[0] === "dropdown") {
value = select2.dropdown;
} else {
value = select2[args[0]].apply(select2, args.slice(1));
}