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

remove event listener on destroy

This commit is contained in:
burnb 2015-02-07 19:16:34 +04:00
parent 307ee39bc2
commit 557f655c86

View File

@ -443,6 +443,8 @@ 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;