osc: load remote-exec module in an init method (called in main browser script)

This commit is contained in:
jean-emmanuel 2016-12-08 05:30:34 +01:00
parent 9f00b40fb2
commit 9575550b42
3 changed files with 7 additions and 3 deletions

View file

@ -7,8 +7,6 @@ var init = require('./init'),
ipc = require('./ipc'),
osc = require('./osc')
osc.remoteExec = remoteExec
var callbacks = module.exports = {
receiveOsc: function(data){

View file

@ -8,6 +8,10 @@ var Osc = function(){
}
Osc.prototype.init = function(data) {
this.remoteExec = require('./remote-exec')
}
Osc.prototype.send = function(data) {
if (this.syncOnly) {

View file

@ -33,8 +33,10 @@ require('./jquery/jquery.fake-input')
///////////////////////
var callbacks = require('./app/callbacks'),
ipc = require('./app/ipc')
ipc = require('./app/ipc'),
osc = require('./app/osc')
osc.init()
///////////////////////