S
S
semki0962017-04-28 10:49:11
PHP
semki096, 2017-04-28 10:49:11

Why is my js changing my Twig output array?

I use Twig, and I connect a third-party script that breaks my array, I view the array through twig debag. Why does the script make some array keys empty? This piece of script changes the array:

var split = Split(['#leftPane', '#rightPane'], {
        sizes: sizes,
        onDragEnd: function () {
          localStorage.setItem('split-sizes', JSON.stringify(split.getSizes()));
        }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question