"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.on = void 0; function on(obj, ev, fn) { obj.on(ev, fn); return { destroy: function () { obj.removeListener(ev, fn); }, }; } exports.on = on;