UNPKG

@robotlegsjs/eventemitter3

Version:
31 lines 1.53 kB
"use strict"; // ------------------------------------------------------------------------------ // Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved. // // NOTICE: You are permitted to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ------------------------------------------------------------------------------ Object.defineProperty(exports, "__esModule", { value: true }); exports.LocalEventEmitterMapExtension = void 0; var IEventEmitterMap_1 = require("./api/IEventEmitterMap"); var EventEmitterMap_1 = require("./impl/EventEmitterMap"); /** * An Event Map keeps track of listeners and provides the ability * to unregister all listeners with a single method call. */ var LocalEventEmitterMapExtension = /** @class */ (function () { function LocalEventEmitterMapExtension() { } /*============================================================================*/ /* Public Functions */ /*============================================================================*/ /** * @inheritDoc */ LocalEventEmitterMapExtension.prototype.extend = function (context) { context.injector.bind(IEventEmitterMap_1.IEventEmitterMap).to(EventEmitterMap_1.EventEmitterMap); }; return LocalEventEmitterMapExtension; }()); exports.LocalEventEmitterMapExtension = LocalEventEmitterMapExtension; //# sourceMappingURL=LocalEventEmitterMapExtension.js.map