PageSourceSearch

https://www.hometownamusements.com/cp/resources/views/test_slot/slot/plugins/GroupShot.js

js hometownamusements.com collected 2026-10-04 01:38:03 UTC 760 bytes, 31 lines download raw bytes

1export default function GroupShot(classDef) {
2    return function(opts) {
3        classDef.call(this, opts);
4
5        const group = opts.group ?? null;
6        let slot_id = -1;
7        if (group) {
8            slot_id = group.add(this);
9        }
10
11        // <${Slot} group=${grp} ...>
12
13        const oldCapture = this.capture;
14        this.capture = async (...args) => {
15            if (group) {
16                group.onCapture(slot_id);
17            }
18            return await oldCapture(...args);
19        };
20
21        const oldOnReturn = this.onreturn;
22        this.onreturn = async (...args) => {
23            if (group) {
24                group.onEnd(slot_id, this.running);
25            }
26            return await oldOnReturn(...args);
27        };
28
29
30    };
31}

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.