devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
19 lines (18 loc) • 734 B
JavaScript
/**
* DevExtreme (ui/list/ui.list.edit.decorator_registry.js)
* Version: 18.1.3
* Build date: Tue May 15 2018
*
* Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
var extend = require("../../core/utils/extend").extend;
exports.registry = {};
exports.register = function(option, type, decoratorClass) {
var decoratorsRegistry = exports.registry;
var decoratorConfig = {};
decoratorConfig[option] = decoratorsRegistry[option] ? decoratorsRegistry[option] : {};
decoratorConfig[option][type] = decoratorClass;
decoratorsRegistry = extend(decoratorsRegistry, decoratorConfig)
};