Skip to content

Commit

Permalink
refactor (Collapse) handleResize
Browse files Browse the repository at this point in the history
make some refactor
  • Loading branch information
mosinve committed Jul 22, 2017
1 parent 19f498a commit dcd869a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/components/collapse.vue
Expand Up @@ -147,13 +147,7 @@
},
handleResize() {
// Handler for orientation/resize to set collapsed state
if (getComputedStyle(this.$refs.collaspe).display === 'block') {
// Initially open
this.show = true;
} else {
// Initiallly closed
this.show = false;
}
this.show = (getComputedStyle(this.$refs.collapse).display === 'block');
},
},
created() {
Expand Down

0 comments on commit dcd869a

Please sign in to comment.