Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Allow method 'clear' to be called #596

Closed
wants to merge 1 commit into from

3 participants

@ni-ka

Allows the method 'clear' to be called using $('#select2').select2("clear").

@cvrebert

Has already been rejected: #554

@ivaynberg ivaynberg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 21, 2012
  1. Allow method 'clear' to be called

    Nils Kaiser authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  select2.js
View
2  select2.js
@@ -2333,7 +2333,7 @@ the specific language governing permissions and limitations under the Apache Lic
var args = Array.prototype.slice.call(arguments, 0),
opts,
select2,
- value, multiple, allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "disable", "positionDropdown", "data"];
+ value, multiple, allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "disable", "positionDropdown", "data", "clear"];
this.each(function () {
if (args.length === 0 || typeof(args[0]) === "object") {
Something went wrong with that request. Please try again.