"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeLoadListener = makeLoadListener;
exports.listenLoad = listenLoad;
function makeLoadListener(listener) {
    return (component) => {
        return listenLoad(component, (event, _event) => {
            listener(event, _event);
        });
    };
}
function listenLoad(component, onLoad) {
    const { $element } = component;
    const loadListener = (_event) => {
        const {} = _event;
        onLoad({}, _event);
    };
    $element.addEventListener('load', loadListener, { passive: true });
    return () => {
        $element.removeEventListener('load', loadListener);
    };
}
//# sourceMappingURL=load.js.map