"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const _ids_1 = require("../../../../_ids");
class StopPropagation extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['event', 'opt'],
            o: [],
        }, {
            input: {
                event: {
                    ref: true,
                },
            },
            output: {},
        }, system, _ids_1.ID_STOP_PROPAGATION_0);
    }
    async f({ event, opt }, done) {
        event.stopPropagation();
        done();
    }
}
exports.default = StopPropagation;
//# sourceMappingURL=index.js.map