Explorar o código

exposed open/close as public. issue #27

Igor Vaynberg %!s(int64=13) %!d(string=hai) anos
pai
achega
654d1bd3b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1379,7 +1379,7 @@
         var args = Array.prototype.slice.call(arguments, 0),
             opts,
             select2,
-            value, multiple, allowedMethods = ["val", "destroy"];
+            value, multiple, allowedMethods = ["val", "destroy", "open", "close"];
 
         this.each(function () {
             if (args.length === 0 || typeof(args[0]) === "object") {