Fixed invalid destructuring attempt on NodeList

This commit is contained in:
squidfunk 2017-03-16 17:37:07 +01:00 committed by Martin Donath
parent a4012cf6f1
commit c293fcfb42
3 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application-c5d094b286.js"></script>
<script src="{{ base_url }}/assets/javascripts/application-3964c0cb56.js"></script>
<script>app.initialize({url:{base:"{{ base_url }}"}})</script>
{% for path in extra_javascript %}
<script src="{{ path }}"></script>

View File

@ -53,7 +53,7 @@ export default class Result {
this.el_ = ref
/* Retrieve metadata and list element */
const [meta, list] = this.el_.children
const [meta, list] = Array.prototype.slice.call(this.el_.children)
/* Set data, metadata and list elements */
this.data_ = data