Remove BrowserWindow events now on WebContents
authorKevin Sawicki <kevinsawicki@gmail.com>
Mon, 2 May 2016 16:32:52 +0000 (09:32 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 6 May 2016 17:12:56 +0000 (10:12 -0700)
lib/browser/api/browser-window.js

index e433580..6da2fda 100644 (file)
@@ -95,17 +95,6 @@ BrowserWindow.prototype._init = function () {
   // Notify the creation of the window.
   app.emit('browser-window-created', {}, this)
 
-  // Be compatible with old APIs.
-  this.webContents.on('devtools-focused', () => {
-    this.emit('devtools-focused')
-  })
-  this.webContents.on('devtools-opened', () => {
-    this.emit('devtools-opened')
-  })
-  this.webContents.on('devtools-closed', () => {
-    this.emit('devtools-closed')
-  })
-
   Object.defineProperty(this, 'devToolsWebContents', {
     enumerable: true,
     configurable: false,