7addb97e73261d34ca9562d9cfa320678be5cbbf5be8b14818dec69b68ab7d2cfcb5965ffe44977ae5596317d552a74f4ecff6bc1f4802cc6de6630e106aa1 543 B

123456789101112131415161718192021
  1. import {inherit} from './object';
  2. /* eslint-disable import/prefer-default-export */
  3. /**
  4. * Factory for columns constructors.
  5. *
  6. * @param {Object} GridSettings
  7. * @param {Array} conflictList
  8. * @return {Object} ColumnSettings
  9. */
  10. export function columnFactory(GridSettings, conflictList) {
  11. function ColumnSettings() {};
  12. inherit(ColumnSettings, GridSettings);
  13. // Clear conflict settings
  14. for (let i = 0, len = conflictList.length; i < len; i++) {
  15. ColumnSettings.prototype[conflictList[i]] = void 0;
  16. }
  17. return ColumnSettings;
  18. }