From ce35e3935ccb1929e0596e5427fb4c31acb2d127 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 07 Dec 2020 13:10:47 +0000
Subject: [PATCH] edit script

---
 assets/js/functions.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/assets/js/functions.js b/assets/js/functions.js
index d1958b3..33a15e9 100644
--- a/assets/js/functions.js
+++ b/assets/js/functions.js
@@ -130,12 +130,12 @@
   contents.forEach(function(c){
     const cs = elems(c, context);
     if(cs.length) {
-      cs.forEach(function(cx){
+      cs.forEach(function(cx, index){
         if(cx.children.length >= 1) {
-          wrap(cx);
           Array.from(cx.children).forEach(function(child){
             wrap(child);
           })
+          wrap(cx);
         } else {
           wrap(cx);
         }

--
Gitblit v1.10.0