fix api and docs

This commit is contained in:
Robo 2016-01-22 10:27:25 +05:30
parent 0e2323c9c8
commit df5bad3f89
4 changed files with 27 additions and 39 deletions

View file

@ -70,6 +70,9 @@ let wrapWebContents = function(webContents) {
var controller, method, name, ref1;
webContents.__proto__ = EventEmitter.prototype;
// webContents.debugger is an EventEmitter.
webContents.debugger.__proto__ = EventEmitter.prototype;
// Every remote callback from renderer process would add a listenter to the
// render-view-deleted event, so ignore the listenters warning.
webContents.setMaxListeners(0);