further fixes for issues introduced by d164721938

This commit is contained in:
Max Stockner 2016-11-12 20:21:30 +01:00 committed by Sebastian Wiedenroth
parent 6b8df3731f
commit 9a1ee28ec3
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ function DMXWeb() {
socket.on('request_refresh', function() {
for(var universe in config.universes) {
socket.emit('update', universe, dmx.universeAsObject(req.params.universe))
socket.emit('update', universe, dmx.universeToObject(universe))
}
})

2
dmx.js
View file

@ -40,7 +40,7 @@ DMX.prototype.updateAll = function(universe, value) {
}
DMX.prototype.universeToObject = function(universe) {
var universe = this.universes[req.params.universe]
var universe = this.universes[universe]
var u = {}
for(var i = 0; i < universe.length; i++) {
u[i] = universe.get(i)