Skip to content

Commit 796c9e8

Browse files
author
Mike S
committed
Renamed to search
1 parent 06130ff commit 796c9e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ the specific language governing permissions and limitations under the Apache Lic
13431343
* Opens control, sets input value, and updates results.
13441344
*/
13451345
// abstract
1346-
setSearch: function (term) {
1346+
search: function (term) {
13471347
this.open();
13481348
this.search.val(term);
13491349
this.updateResults(false);
@@ -3034,7 +3034,7 @@ the specific language governing permissions and limitations under the Apache Lic
30343034
opts,
30353035
select2,
30363036
value, multiple,
3037-
allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "readonly", "positionDropdown", "data", "setSearch"],
3037+
allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "readonly", "positionDropdown", "data", "search"],
30383038
valueMethods = ["val", "opened", "isFocused", "container", "data"];
30393039

30403040
this.each(function () {

0 commit comments

Comments
 (0)