@robotlegsjs/core
Version:
An architecture-based IoC framework for JavaScript/TypeScript
31 lines • 1.41 kB
JavaScript
;
// ------------------------------------------------------------------------------
// 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.LocalEventMapExtension = void 0;
var IEventMap_1 = require("./api/IEventMap");
var EventMap_1 = require("./impl/EventMap");
/**
* An Event Map keeps track of listeners and provides the ability
* to unregister all listeners with a single method call.
*/
var LocalEventMapExtension = /** @class */ (function () {
function LocalEventMapExtension() {
}
/*============================================================================*/
/* Public Functions */
/*============================================================================*/
/**
* @inheritDoc
*/
LocalEventMapExtension.prototype.extend = function (context) {
context.injector.bind(IEventMap_1.IEventMap).to(EventMap_1.EventMap);
};
return LocalEventMapExtension;
}());
exports.LocalEventMapExtension = LocalEventMapExtension;
//# sourceMappingURL=LocalEventMapExtension.js.map