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

Loading…
Cancel
Save