From 31c6fd12907062ce392c7ca3f5b688e338f5f719 Mon Sep 17 00:00:00 2001 From: Nikoli Daigneault Date: Wed, 4 Nov 2015 10:46:13 -0500 Subject: [PATCH] devices configuration removed from file and into library --- dmx.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dmx.js b/dmx.js index 4072f65..92a8c32 100644 --- a/dmx.js +++ b/dmx.js @@ -3,9 +3,10 @@ var util = require('util') var EventEmitter = require('events').EventEmitter -function DMX() { +function DMX(devices) { this.universes = {} - this.drivers = {} + this.drivers = {} + this.devices = devices this.registerDriver('null', require('./drivers/null')) this.registerDriver('enttec-usb-dmx-pro', require('./drivers/enttec-usb-dmx-pro')) @@ -14,7 +15,6 @@ function DMX() { util.inherits(DMX, EventEmitter) -DMX.devices = require('./devices') DMX.Animation = require('./anim') DMX.prototype.registerDriver = function(name, module) {