site/node_modules/mj-context-menu/js/parser_factory.js

17 lines
541 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParserFactory = void 0;
var ParserFactory = (function () {
function ParserFactory(init) {
this._parser = new Map(init);
}
ParserFactory.prototype.get = function (name) {
return this._parser.get(name);
};
ParserFactory.prototype.add = function (name, method) {
this._parser.set(name, method);
};
return ParserFactory;
}());
exports.ParserFactory = ParserFactory;
//# sourceMappingURL=parser_factory.js.map