فهرست منبع

exposed open/close as public. issue #27

Igor Vaynberg 13 سال پیش
والد
کامیت
654d1bd3b2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      select2.js

+ 1 - 1
select2.js

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