source: trip-planner-front/node_modules/zone.js/bundles/zone-patch-cordova.umd.js@ 188ee53

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

initial commit

  • Property mode set to 100644
File size: 2.1 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('cordova', function (global, Zone, api) {
20 if (global.cordova) {
21 var SUCCESS_SOURCE_1 = 'cordova.exec.success';
22 var ERROR_SOURCE_1 = 'cordova.exec.error';
23 var FUNCTION_1 = 'function';
24 var nativeExec_1 = api.patchMethod(global.cordova, 'exec', function () { return function (self, args) {
25 if (args.length > 0 && typeof args[0] === FUNCTION_1) {
26 args[0] = Zone.current.wrap(args[0], SUCCESS_SOURCE_1);
27 }
28 if (args.length > 1 && typeof args[1] === FUNCTION_1) {
29 args[1] = Zone.current.wrap(args[1], ERROR_SOURCE_1);
30 }
31 return nativeExec_1.apply(self, args);
32 }; });
33 }
34 });
35 Zone.__load_patch('cordova.FileReader', function (global, Zone) {
36 if (global.cordova && typeof global['FileReader'] !== 'undefined') {
37 document.addEventListener('deviceReady', function () {
38 var FileReader = global['FileReader'];
39 ['abort', 'error', 'load', 'loadstart', 'loadend', 'progress'].forEach(function (prop) {
40 var eventNameSymbol = Zone.__symbol__('ON_PROPERTY' + prop);
41 Object.defineProperty(FileReader.prototype, eventNameSymbol, {
42 configurable: true,
43 get: function () {
44 return this._realReader && this._realReader[eventNameSymbol];
45 }
46 });
47 });
48 });
49 }
50 });
51})));
Note: See TracBrowser for help on using the repository browser.