Explorar o código

Add missing commas (#2081)

Francisco Madeira %!s(int64=3) %!d(string=hai) anos
pai
achega
1ebbe05188
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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 hideAfterChildren = el => {
                     let carry = Promise.all([
                     let carry = Promise.all([
                         el._x_hidePromise,
                         el._x_hidePromise,
-                        ...(el._x_hideChildren || []).map(hideAfterChildren)
+                        ...(el._x_hideChildren || []).map(hideAfterChildren),
                     ]).then(([i]) => i())
                     ]).then(([i]) => i())
 
 
                     delete el._x_hidePromise
                     delete el._x_hidePromise
@@ -248,7 +248,7 @@ export function performTransition(el, stages, entering) {
         beforeCancel(callback) { this.beforeCancels.push(callback) },
         beforeCancel(callback) { this.beforeCancels.push(callback) },
         cancel: once(function () { while (this.beforeCancels.length) { this.beforeCancels.shift()() }; finish(); }),
         cancel: once(function () { while (this.beforeCancels.length) { this.beforeCancels.shift()() }; finish(); }),
         finish,
         finish,
-        entering
+        entering,
     }
     }
 
 
     mutateDom(() => {
     mutateDom(() => {

+ 1 - 1
scripts/utils.js

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