1
0
mirror of synced 2025-03-11 15:16:09 +03:00

close before destroying. fixes #1550

This commit is contained in:
Igor Vaynberg 2013-07-26 22:22:14 -07:00
parent bbb3e14102
commit 238903f5f4

View File

@ -779,6 +779,8 @@ the specific language governing permissions and limitations under the Apache Lic
destroy: function () {
var element=this.opts.element, select2 = element.data("select2");
this.close();
if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }
if (select2 !== undefined) {