PageSourceSearch

https://www.tourisme-gujanmestras.com/app/dist/gujanmestras/addons…/code/es-modules/Core/Foundation.js

js tourisme-gujanmestras.com collected 2026-10-10 02:33:00 UTC 2,041 bytes, 63 lines download raw bytes

vendor: 2,041 bytes, lines 1-63
1/* *
2 *
3 *  (c) 2010-2024 Torstein Honsi
4 *
5 *  License: www.highcharts.com/license
6 *
7 *  !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
8 *
9 * */
10'use strict';
11import U from './Utilities.js';
12const { addEvent, isFunction, objectEach, removeEvent } = U;
13/* *
14 *
15 *  Class Namespace
16 *
17 * */
18var Foundation;
19(function (Foundation) {
20    /* *
21     *
22     *  Functions
23     *
24     * */
25    /* eslint-disable valid-jsdoc */
26    /**
27     * Register event options. If an event handler is set on the options, it
28     * should be subject to Chart.update, Axis.update and Series.update. This is
29     * contrary to general handlers that are set directly using addEvent either
30     * on the class or on the instance. #6538, #6943, #10861.
31     * @private
32     */
33    function registerEventOptions(component, options) {
34        // A lookup over those events that are added by _options_ (not
35        // programmatically). These are updated through .update()
36        component.eventOptions = component.eventOptions || {};
37        // Register event listeners
38        objectEach(options.events, function (event, eventType) {
39            // If event does not exist, or is changed by the .update()
40            // function
41            if (component.eventOptions[eventType] !== event) {
42                // Remove existing if set by option
43                if (component.eventOptions[eventType]) {
44                    removeEvent(component, eventType, component.eventOptions[eventType]);
45                    delete component.eventOptions[eventType];
46                }
47                if (isFunction(event)) {
48                    component.eventOptions[eventType] = event;
49                    addEvent(component, eventType, event, {
50                        order: 0 // #14080 fire those events as firsts
51                    });
52                }
53            }
54        });
55    }
56    Foundation.registerEventOptions = registerEventOptions;
57})(Foundation || (Foundation = {}));
58/* *
59 *
60 *  Default Export
61 *
62 * */
63export default Foundation;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.