Add the Manip class as an export of ui/dom.js

This commit is contained in:
Samuel Elliott 2018-06-10 22:17:37 +01:00
parent 35cedbdbb3
commit be841f0426
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
3 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@
<script>
import { EmoteModule } from 'builtin';
import { Events, Settings } from 'modules';
import { DOM } from 'ui';
import { DOMManip as Manip } from 'ui';
import { MiStar } from './MaterialIcon';
export default {
@ -162,7 +162,7 @@
let substr = value.substr(0, selectionEnd);
substr = substr.replace(new RegExp(this.sterm + '$'), en);
DOM.manip.setText(substr + value.substr(selectionEnd, value.length), false);
Manip.setText(substr + value.substr(selectionEnd, value.length), false);
ta.selectionEnd = ta.selectionStart = selectionEnd + en.length - this.sterm.length;
this.reset();
}

View File

@ -105,6 +105,8 @@ class Manip {
}
}
export { Manip as DOMManip };
export default class DOM {
static get manip() {

View File

@ -1,4 +1,4 @@
export { default as DOM, DOMObserver } from './dom';
export { default as DOM, DOMObserver, DOMManip } from './dom';
export { default as BdUI } from './bdui';
export { default as VueInjector } from './vueinjector';
export { default as BdMenu, BdMenuItems } from './bdmenu';