#svgSourceEditorDialog lint issue fixed
This commit is contained in:
@@ -505,7 +505,7 @@ export class SeEditPrefsDialog extends HTMLElement {
|
||||
this.dispatchEvent(closeEvent);
|
||||
};
|
||||
// Set up editor background functionality
|
||||
const self = this;
|
||||
const currentObj = this;
|
||||
this.colorBlocks.forEach(function (e, i) {
|
||||
const newdiv = document.createElement('div');
|
||||
if (e === 'chessboard') {
|
||||
@@ -518,7 +518,7 @@ export class SeEditPrefsDialog extends HTMLElement {
|
||||
newdiv.style.backgroundColor = e;
|
||||
newdiv.classList.add('color_block');
|
||||
}
|
||||
self.$bgBlocks.append(newdiv);
|
||||
currentObj.$bgBlocks.append(newdiv);
|
||||
});
|
||||
const blocks = this.$bgBlocks.querySelectorAll('div');
|
||||
const curBg = 'cur_background';
|
||||
|
||||
@@ -208,10 +208,12 @@ export class SeSvgSourceEditorDialog extends HTMLElement {
|
||||
this.dispatchEvent(closeEvent);
|
||||
};
|
||||
const onCopyHandler = (ev) => {
|
||||
const closeEvent = new CustomEvent('change', {detail: {
|
||||
copy: 'click',
|
||||
value: this.$sourceTxt.value,
|
||||
}});
|
||||
const closeEvent = new CustomEvent('change', {
|
||||
detail: {
|
||||
copy: 'click',
|
||||
value: this.$sourceTxt.value
|
||||
}
|
||||
});
|
||||
this.dispatchEvent(closeEvent);
|
||||
};
|
||||
const onSaveHandler = (ev) => {
|
||||
|
||||
Reference in New Issue
Block a user