From 2e59c0fbb33cde1fb8d45b6d6cfdddfc0ab6dd2d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 8 Sep 2019 21:29:14 +0100 Subject: [PATCH] Re-order items, pass npm lint --- resources/js/app.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index d7552e72..dabbc96d 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -5,9 +5,9 @@ window.hljs = require('highlightjs') new Vue({ el: '#app', - methods: { - toggle () { - this.isOpen = !this.isOpen + data () { + return { + isOpen: false } }, @@ -16,9 +16,9 @@ new Vue({ this.$el.classList.add('js') }, - data () { - return { - isOpen: false + methods: { + toggle () { + this.isOpen = !this.isOpen } } })