Browse Source

Refactor utils module

pull/4746/head
Artur Arseniev 4 years ago
parent
commit
c55cdfae3c
  1. 34
      src/utils/index.ts

34
src/utils/index.ts

@ -2,28 +2,18 @@ import Dragger from './Dragger';
import Sorter from './Sorter'; import Sorter from './Sorter';
import Resizer from './Resizer'; import Resizer from './Resizer';
import * as mixins from './mixins'; import * as mixins from './mixins';
import { Module } from '../abstract';
import EditorModel from '../editor/model/Editor';
export default () => { export default class UtilsModule extends Module {
return { Sorter = Sorter;
/** Resizer = Resizer;
* Name of the module Dragger = Dragger;
* @type {String} helpers = { ...mixins };
* @private
*/
name: 'Utils',
/** constructor(em: EditorModel) {
* Initialize module super(em, 'Utils');
*/ }
init() {
return this;
},
destroy() {}, destroy() {}
}
Sorter,
Resizer,
Dragger,
helpers: { ...mixins },
};
};

Loading…
Cancel
Save