Skip to content

Commit

Permalink
Delete commented-out code, unnecessary unlit.js changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih-erikli committed Sep 11, 2023
1 parent f3c4f25 commit 620dc6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/fontra/views/editor/panel-reference-font.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ export default class ReferenceFontPanel extends Panel {
}

attach() {
// const referenceFontElement = this.contentElement.querySelector("#reference-font");
this.controller.addKeyListener("referenceFontName", (event) => {
if (event.newValue) {
this.editorController.visualizationLayersSettings.model[
Expand Down
8 changes: 1 addition & 7 deletions src/fontra/views/editor/panel.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import { SimpleElement } from "/core/unlit.js";

export default class Panel extends SimpleElement {
constructor(editorController, renderContentElement = true) {
constructor(editorController) {
super();
this.editorController = editorController;
if (renderContentElement) {
this.renderContentElement();
}
}

renderContentElement() {
this.contentElement = this.getContentElement();
this.shadowRoot.appendChild(this.contentElement);
}
Expand Down

0 comments on commit 620dc6d

Please sign in to comment.