PageSourceSearch

https://clienti.cda-net.it/public/lib/FuxFramework/FuxEvents.js?v=1689345326

js cda-net.it collected 2026-10-08 18:51:45 UTC 708 bytes, 24 lines download raw bytes

vendor: 708 bytes, lines 1-24
1var FuxEvents = {
2    events: {},
3    on: function (eventName, fn) {
4        this.events[eventName] = this.events[eventName] || [];
5        this.events[eventName].push(fn);
6    },
7    off: function(eventName, fn) {
8        if (this.events[eventName]) {
9            for (var i = 0; i < this.events[eventName].length; i++) {
10                if (this.events[eventName][i] === fn) {
11                    this.events[eventName].splice(i, 1);
12                    break;
13                }
14            };
15        }
16    },
17    emit: function (eventName, data) {
18        if (this.events[eventName]) {
19            this.events[eventName].forEach(function(fn) {
20                fn(data);
21            });
22        }
23    }
24};

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.