Remove unneeded slice call
This commit is contained in:
parent
8889c29866
commit
a53c7529c1
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ deprecate.warn('ipc module', 'require("electron").ipcRenderer');
|
|||
var ipc = new EventEmitter;
|
||||
|
||||
ipcRenderer.emit = function(channel, event, ...args) {
|
||||
ipc.emit.apply(ipc, [channel].concat(slice.call(args)));
|
||||
ipc.emit.apply(ipc, [channel].concat(args));
|
||||
return EventEmitter.prototype.emit.apply(ipcRenderer, arguments);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue