1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Update select2.js

Fix an exception when called "destroy" on a still opened dropdown.
This commit is contained in:
Cyril Nicodème 2014-05-20 09:30:35 +02:00
parent 2a0c8444fb
commit 02d6e88747

View File

@ -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