Преглед на файлове

Update select2.js

Fix an exception when called "destroy" on a still opened dropdown.
Cyril Nicodème преди 11 години
родител
ревизия
02d6e88747
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1194,7 +1194,7 @@ the specific language governing permissions and limitations under the Apache Lic
 
         // abstract
         opened: function () {
-            return this.container.hasClass("select2-dropdown-open");
+            return (this.container) ? this.container.hasClass("select2-dropdown-open") : false;
         },
 
         // abstract