UNPKG

angular2-schema-form

Version:

Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)

17 lines (16 loc) 467 B
var ActionRegistry = (function () { function ActionRegistry() { this.actions = {}; } ActionRegistry.prototype.clear = function () { this.actions = {}; }; ActionRegistry.prototype.register = function (actionId, action) { this.actions[actionId] = action; }; ActionRegistry.prototype.get = function (actionId) { return this.actions[actionId]; }; return ActionRegistry; }()); export { ActionRegistry };