2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-06-05 17:22:24 +03:00

Formatting

This commit is contained in:
Randall Wilk
2018-10-15 09:05:16 -05:00
parent 6dfbf4200c
commit 3833e39e50
+10 -10
View File
@@ -77,21 +77,21 @@
window.addEventListener('scroll', this.close);
},
/**
* Close the context menu.
/**
* Close the context menu.
*
* @param {boolean|Event} emit Used to prevent event being emitted twice from when menu is clicked and closed
*/
close (emit = true) {
this.top = null;
this.left = null;
this.data = null;
this.show = false;
*/
close (emit = true) {
this.top = null;
this.left = null;
this.data = null;
this.show = false;
if (emit) {
if (emit) {
this.$emit('close');
}
},
},
/**
* Close the menu if `closeOnClick` is set to true.