Skip to content

Commit 70a96b2

Browse files
committed
Zone: fix mutation observer
1 parent 7d1ae76 commit 70a96b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

assets/zone.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,15 @@ function patchClass(className) {
512512
return this._o.observe.apply(this._o, arguments);
513513
};
514514

515+
global[className].prototype.takeRecords = function () {
516+
if (!this._active) {
517+
this._creationZone.enqueueTask();
518+
this._active = true;
519+
}
520+
return this._o.takeRecords.apply(this._o, arguments);
521+
};
522+
523+
515524
var prop;
516525
for (prop in instance) {
517526
(function (prop) {

0 commit comments

Comments
 (0)