From 39382fab08d85ea9bd6c51d49e1e648c1ba97b28 Mon Sep 17 00:00:00 2001 From: Phazeshift Date: Fri, 1 Aug 2014 12:19:19 +0100 Subject: [PATCH] Fixing 'Type mismatch' exception in destroy in IE11 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index fa4d21a7..b6ebfd93 100644 --- a/select2.js +++ b/select2.js @@ -850,7 +850,7 @@ the specific language governing permissions and limitations under the Apache Lic this.close(); - if (element.length && element[0].detachEvent) { + if (element.length && element[0].detachEvent && self._sync) { element.each(function () { this.detachEvent("onpropertychange", self._sync); });