Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use objects rather than arrays.
  • Loading branch information
mithro committed Aug 1, 2014
1 parent 0150045 commit b95d7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/frontend/templates/index.html
Expand Up @@ -150,7 +150,7 @@ <h1>
});
{% endfor %}

var update_video_for = new Array();
var update_video_for = {};
{% for group, details in groups.items %}
update_video_for['{{group}}'] = function() {
$('#video-preload-{{group|escapejs}}').attr(
Expand All @@ -168,7 +168,7 @@ <h1>
<script type="text/javascript">
// Code which updates the chat windows
//----------------------------------------------------------------------------/
var update_chat_for = new Array();
var update_chat_for = {};
{% for group, details in groups.items %}
update_chat_for['{{group}}'] = function() {
$('#chat-preview-{{group|escapejs}}').attr(
Expand Down

0 comments on commit b95d7bc

Please sign in to comment.