1
0
mirror of synced 2024-11-29 08:06:03 +03:00

Fix issue syncing CSS classes in IE9/10

This commit is contained in:
jorupp 2014-04-15 16:36:24 -05:00
parent 00716adf65
commit 632595f530

View File

@ -1079,8 +1079,12 @@ the specific language governing permissions and limitations under the Apache Lic
}); });
// IE8-10 // IE8-10 (IE9/10 won't fire propertyChange via attachEventListener)
el.on("propertychange.select2", sync); if (el.length && el[0].attachEvent) {
el.each(function() {
this.attachEvent("onpropertychange", sync);
});
}
// hold onto a reference of the callback to work around a chromium bug // hold onto a reference of the callback to work around a chromium bug
if (this.mutationCallback === undefined) { if (this.mutationCallback === undefined) {