Browse Source

Add missing commas (#2081)

Francisco Madeira 3 years ago
parent
commit
1ebbe05188
2 changed files with 3 additions and 3 deletions
  1. 2 2
      packages/alpinejs/src/directives/x-transition.js
  2. 1 1
      scripts/utils.js

+ 2 - 2
packages/alpinejs/src/directives/x-transition.js

@@ -159,7 +159,7 @@ window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, valu
                 let hideAfterChildren = el => {
                     let carry = Promise.all([
                         el._x_hidePromise,
-                        ...(el._x_hideChildren || []).map(hideAfterChildren)
+                        ...(el._x_hideChildren || []).map(hideAfterChildren),
                     ]).then(([i]) => i())
 
                     delete el._x_hidePromise
@@ -248,7 +248,7 @@ export function performTransition(el, stages, entering) {
         beforeCancel(callback) { this.beforeCancels.push(callback) },
         cancel: once(function () { while (this.beforeCancels.length) { this.beforeCancels.shift()() }; finish(); }),
         finish,
-        entering
+        entering,
     }
 
     mutateDom(() => {

+ 1 - 1
scripts/utils.js

@@ -24,7 +24,7 @@ module.exports.getFromPackageDotJson = function (package, key) {
 module.exports.ask = async function (message, callback) {
     let readline = require('readline').createInterface({
         input: process.stdin,
-        output: process.stdout
+        output: process.stdout,
     })
 
     readline.question(message, answer => {