a zip code crypto-currency system good for red ONLY

webapis-shadydom.js 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @license
  3. * Copyright Google Inc. All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. (function (global, factory) {
  9. typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
  10. typeof define === 'function' && define.amd ? define(factory) :
  11. (factory());
  12. }(this, (function () { 'use strict';
  13. /**
  14. * @license
  15. * Copyright Google Inc. All Rights Reserved.
  16. *
  17. * Use of this source code is governed by an MIT-style license that can be
  18. * found in the LICENSE file at https://angular.io/license
  19. */
  20. Zone.__load_patch('shadydom', function (global, Zone, api) {
  21. // https://github.com/angular/zone.js/issues/782
  22. // in web components, shadydom will patch addEventListener/removeEventListener of
  23. // Node.prototype and WindowPrototype, this will have conflict with zone.js
  24. // so zone.js need to patch them again.
  25. var windowPrototype = Object.getPrototypeOf(window);
  26. if (windowPrototype && windowPrototype.hasOwnProperty('addEventListener')) {
  27. windowPrototype[Zone.__symbol__('addEventListener')] = null;
  28. windowPrototype[Zone.__symbol__('removeEventListener')] = null;
  29. api.patchEventTarget(global, [windowPrototype]);
  30. }
  31. if (Node.prototype.hasOwnProperty('addEventListener')) {
  32. Node.prototype[Zone.__symbol__('addEventListener')] = null;
  33. Node.prototype[Zone.__symbol__('removeEventListener')] = null;
  34. api.patchEventTarget(global, [Node.prototype]);
  35. }
  36. });
  37. })));