From 3833e39e50dcbd695accb2e6960149a11a0cf073 Mon Sep 17 00:00:00 2001 From: Randall Wilk Date: Mon, 15 Oct 2018 09:05:16 -0500 Subject: [PATCH] Formatting --- src/vue-context.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/vue-context.vue b/src/vue-context.vue index ee8f0d4..b30b268 100644 --- a/src/vue-context.vue +++ b/src/vue-context.vue @@ -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.