#svgSourceEditorDialog lint issue fixed

This commit is contained in:
Agriya Dev5
2020-12-21 20:40:07 +05:30
parent 9e2a10f729
commit 83d08c373b
2 changed files with 8 additions and 6 deletions

View File

@@ -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';

View File

@@ -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) => {