Skip to content

Commit

Permalink
fix: CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 13, 2018
1 parent 4bb5944 commit 1ee2df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class Tree<T> extends Vue {
}
return hasPath
}
private containsNode(parentNode: HTMLElement, node: HTMLElement) {
private containsNode(parentNode: HTMLElement, node: HTMLElement): boolean {
for (let i = 0; i < parentNode.children.length; i++) {
const child = parentNode.children[i] as HTMLElement
if (child === node) {
Expand All @@ -226,7 +226,7 @@ export class Tree<T> extends Vue {
return false
}
private getAnchor(target: HTMLElement) {
let anchor = target as HTMLElement
let anchor = target
while (anchor && anchor.classList && !anchor.classList.contains('tree-anchor')) {
anchor = anchor.parentElement as HTMLElement
}
Expand Down

0 comments on commit 1ee2df5

Please sign in to comment.