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

25 lines
758 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"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