osc: load remote-exec module in an init method (called in main browser script)
This commit is contained in:
parent
9f00b40fb2
commit
9575550b42
3 changed files with 7 additions and 3 deletions
|
|
@ -7,8 +7,6 @@ var init = require('./init'),
|
|||
ipc = require('./ipc'),
|
||||
osc = require('./osc')
|
||||
|
||||
osc.remoteExec = remoteExec
|
||||
|
||||
var callbacks = module.exports = {
|
||||
|
||||
receiveOsc: function(data){
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
||||
///////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue