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

Issue 234368 for the Chromium project is fixed now (Issue #1099)

This commit is contained in:
Justin Lei 2014-04-23 17:16:10 -07:00
parent 6156abc2a8
commit f9be3c039c

View File

@ -829,8 +829,6 @@ the specific language governing permissions and limitations under the Apache Lic
if (this.propertyObserver) {
this.propertyObserver.disconnect();
this.propertyObserver = null;
this.mutationCallback = null;
}
if (select2 !== undefined) {
@ -1096,18 +1094,13 @@ the specific language governing permissions and limitations under the Apache Lic
});
}
// hold onto a reference of the callback to work around a chromium bug
if (this.mutationCallback === undefined) {
this.mutationCallback = function (mutations) {
mutations.forEach(sync);
}
}
// safari, chrome, firefox, IE11
observer = window.MutationObserver || window.WebKitMutationObserver|| window.MozMutationObserver;
if (observer !== undefined) {
if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }
this.propertyObserver = new observer(this.mutationCallback);
this.propertyObserver = new observer(function (mutations) {
mutations.forEach(sync);
});
this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false });
}
},