further fixes for issues introduced by d164721938
This commit is contained in:
parent
6b8df3731f
commit
9a1ee28ec3
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ function DMXWeb() {
|
||||||
|
|
||||||
socket.on('request_refresh', function() {
|
socket.on('request_refresh', function() {
|
||||||
for(var universe in config.universes) {
|
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
2
dmx.js
|
@ -40,7 +40,7 @@ DMX.prototype.updateAll = function(universe, value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
DMX.prototype.universeToObject = function(universe) {
|
DMX.prototype.universeToObject = function(universe) {
|
||||||
var universe = this.universes[req.params.universe]
|
var universe = this.universes[universe]
|
||||||
var u = {}
|
var u = {}
|
||||||
for(var i = 0; i < universe.length; i++) {
|
for(var i = 0; i < universe.length; i++) {
|
||||||
u[i] = universe.get(i)
|
u[i] = universe.get(i)
|
||||||
|
|
Loading…
Reference in a new issue