"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Holder_1 = require("../../../../../Class/Holder");
const _ids_1 = require("../../../../_ids");
class StopPropagation extends Holder_1.Holder {
    constructor(system) {
        super({
            fi: ['component', 'name'],
            fo: [],
            i: [],
            o: [],
        }, {
            input: {
                component: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_STOP_PROPAGATION);
    }
    async f({ component, name }, done) {
        this._unlisten = component.stopPropagation(name);
    }
    d() {
        if (this._unlisten) {
            this._unlisten();
            this._unlisten = undefined;
        }
    }
}
exports.default = StopPropagation;
//# sourceMappingURL=index.js.map