1
0
mirror of synced 2025-02-04 06:09:23 +03:00

Merge pull request #3012 from burnb/select2-ng

fix - add event listener for opera 12
This commit is contained in:
Kevin Brown 2015-02-13 22:58:41 -05:00
commit a2a99e64ba

View File

@ -196,6 +196,8 @@ define([
attributes: true,
subtree: false
});
} else if (this.$element[0].addEventListener) {
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
}
};
@ -458,6 +460,9 @@ define([
if (this._observer != null) {
this._observer.disconnect();
this._observer = null;
} else if (this.$element[0].removeEventListener) {
this.$element[0]
.removeEventListener('DOMAttrModified', this._sync, false);
}
this._sync = null;