mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Remove unneeded slice call
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user