firefox: osc: dont use unsupported ...arguments, use fn.apply instead
This commit is contained in:
parent
fdbb8d673b
commit
954367c528
1 changed files with 2 additions and 2 deletions
|
|
@ -7,11 +7,11 @@ var Ipc = function(){
|
|||
}
|
||||
|
||||
Ipc.prototype.send = function(){
|
||||
return this.socket.emit(...arguments)
|
||||
return this.socket.emit.apply(this.socket, arguments)
|
||||
}
|
||||
|
||||
Ipc.prototype.on = function(){
|
||||
return this.socket.on(...arguments)
|
||||
return this.socket.on.apply(this.socket, arguments)
|
||||
}
|
||||
|
||||
var ipc = new Ipc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue