You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
950 B

'use strict';
/**
* @license Angular
* (c) 2010-2025 Google LLC. https://angular.dev/
* License: MIT
*/
// packages/zone.js/lib/browser/shadydom.js
function patchShadyDom(Zone2) {
Zone2.__load_patch("shadydom", (global, Zone3, api) => {
const HTMLSlotElement = global.HTMLSlotElement;
const prototypes = [
Object.getPrototypeOf(window),
Node.prototype,
Text.prototype,
Element.prototype,
HTMLElement.prototype,
HTMLSlotElement && HTMLSlotElement.prototype,
DocumentFragment.prototype,
Document.prototype
];
prototypes.forEach(function(proto) {
if (proto && proto.hasOwnProperty("addEventListener")) {
proto[Zone3.__symbol__("addEventListener")] = null;
proto[Zone3.__symbol__("removeEventListener")] = null;
api.patchEventTarget(global, api, [proto]);
}
});
});
}
// packages/zone.js/lib/browser/rollup-shadydom.js
patchShadyDom(Zone);