mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-05 17:22:24 +03:00
Formatting
This commit is contained in:
+10
-10
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user