Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Feb 19, 2020
1 parent 90bef83 commit e8c7f7a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 1,312 deletions.
3 changes: 2 additions & 1 deletion packages/x6/src/research/attr/define.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ export namespace Attribute {
const firstChild = node.firstChild as Element
if (firstChild && firstChild.tagName.toUpperCase() === 'TITLE') {
// Update an existing title
(firstChild as SVGTitleElement).textContent = title
const titleElem = firstChild as SVGTitleElement
titleElem.textContent = title
} else {
// Create a new title
const titleNode = document.createElementNS(
Expand Down

0 comments on commit e8c7f7a

Please sign in to comment.