source: trip-planner-front/node_modules/zone.js/bundles/webapis-shadydom.umd.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
1'use strict';
2/**
3 * @license Angular v12.0.0-next.0
4 * (c) 2010-2020 Google LLC. https://angular.io/
5 * License: MIT
6 */
7(function (factory) {
8 typeof define === 'function' && define.amd ? define(factory) :
9 factory();
10}((function () {
11 'use strict';
12 /**
13 * @license
14 * Copyright Google LLC All Rights Reserved.
15 *
16 * Use of this source code is governed by an MIT-style license that can be
17 * found in the LICENSE file at https://angular.io/license
18 */
19 Zone.__load_patch('shadydom', function (global, Zone, api) {
20 // https://github.com/angular/zone.js/issues/782
21 // in web components, shadydom will patch addEventListener/removeEventListener of
22 // Node.prototype and WindowPrototype, this will have conflict with zone.js
23 // so zone.js need to patch them again.
24 var HTMLSlotElement = global.HTMLSlotElement;
25 var prototypes = [
26 Object.getPrototypeOf(window), Node.prototype, Text.prototype, Element.prototype,
27 HTMLElement.prototype, HTMLSlotElement && HTMLSlotElement.prototype, DocumentFragment.prototype,
28 Document.prototype
29 ];
30 prototypes.forEach(function (proto) {
31 if (proto && proto.hasOwnProperty('addEventListener')) {
32 proto[Zone.__symbol__('addEventListener')] = null;
33 proto[Zone.__symbol__('removeEventListener')] = null;
34 api.patchEventTarget(global, [proto]);
35 }
36 });
37 });
38})));
Note: See TracBrowser for help on using the repository browser.