Skip to content

Commit

Permalink
Zone: fix mutation observer
Browse files Browse the repository at this point in the history
  • Loading branch information
sviande committed Sep 22, 2021
1 parent 7d1ae76 commit 70a96b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,15 @@ function patchClass(className) {
return this._o.observe.apply(this._o, arguments);
};

global[className].prototype.takeRecords = function () {
if (!this._active) {
this._creationZone.enqueueTask();
this._active = true;
}
return this._o.takeRecords.apply(this._o, arguments);
};


var prop;
for (prop in instance) {
(function (prop) {
Expand Down

0 comments on commit 70a96b2

Please sign in to comment.