Skip to content

Commit

Permalink
Auto fix by the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Vargas committed Dec 19, 2019
1 parent 67e2a99 commit 8aff67d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
14 changes: 7 additions & 7 deletions src/components/TreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
<ul
v-if="hasChildren() && node.states.expanded"
class="tree-children"
>
<node
v-for="child in visibleChildren"
:key="child.id"
:node="child"
:options="options"
/>
>
<node
v-for="child in visibleChildren"
:key="child.id"
:node="child"
:options="options"
/>
</ul>
</transition>
</li>
Expand Down
36 changes: 18 additions & 18 deletions src/components/TreeRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,6 @@
default: 'div'
}
},
watch: {
filter (term) {
this.tree.filter(term)
}
},
computed: {
visibleModel() {
return this.model.filter(function(node) {
return node && node.visible()
})
},
visibleMatches() {
return this.matches.filter(function(node) {
return node && node.visible()
})
}
},
data () {
// we should not mutating a prop directly...
// that's why we have to create a new object
Expand All @@ -152,6 +134,24 @@
draggableNode: null
}
},
computed: {
visibleModel() {
return this.model.filter(function(node) {
return node && node.visible()
})
},
visibleMatches() {
return this.matches.filter(function(node) {
return node && node.visible()
})
}
},
watch: {
filter (term) {
this.tree.filter(term)
}
},
watch: {
filter (term) {
Expand Down

0 comments on commit 8aff67d

Please sign in to comment.