Some more refactoring

This commit is contained in:
An Phan 2016-09-23 18:12:42 +08:00
parent a03a191cf3
commit 9dd44ba394
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2
2 changed files with 3 additions and 10 deletions

View file

@ -137,9 +137,7 @@ export default {
* Listen to sidebar:toggle event to show or hide the sidebar.
* This should only be triggered on a mobile device.
*/
event.on('sidebar:toggle', () => {
this.showing = !this.showing;
});
event.on('sidebar:toggle', () => this.showing = !this.showing);
},
};
</script>

View file

@ -73,13 +73,8 @@ export default {
created() {
event.on({
'overlay:show': options => {
this.show(options);
},
'overlay:hide': () => {
this.hide();
},
'overlay:show': options => this.show(options),
'overlay:hide': () => this.hide(),
});
},
};