site/node_modules/mj-context-menu/js/variable_pool.js
2024-10-14 08:09:33 +02:00

25 lines
758 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VariablePool = void 0;
var VariablePool = (function () {
function VariablePool() {
this.pool = {};
}
VariablePool.prototype.insert = function (variable) {
this.pool[variable.name] = variable;
};
VariablePool.prototype.lookup = function (name) {
return this.pool[name];
};
VariablePool.prototype.remove = function (name) {
delete this.pool[name];
};
VariablePool.prototype.update = function () {
for (var variable in this.pool) {
this.pool[variable].update();
}
};
return VariablePool;
}());
exports.VariablePool = VariablePool;
//# sourceMappingURL=variable_pool.js.map