Skip to content

Commit

Permalink
perf(navbar-toggle): Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse committed Nov 5, 2017
1 parent fab5d9a commit 1e95383
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/navbar/navbar-toggle.vue
Expand Up @@ -38,19 +38,16 @@ export default {
default: 'right'
},
target: {
type: String,
required: true
}
},
methods: {
onclick() {
const target = this.target;
if (target.toggle) {
target.toggle();
}
this.$root.$emit('bv::toggle::collapse', this.target);
},
handleStateEvt(target, state) {
if (target === this.target || target === this.target.id) {
handleStateEvt(id, state) {
if (id === this.target) {
this.toggleState = state;
}
}
Expand Down

0 comments on commit 1e95383

Please sign in to comment.