projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2d8ead
)
Remove BrowserWindow events now on WebContents
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 2 May 2016 16:32:52 +0000
(09:32 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Fri, 6 May 2016 17:12:56 +0000
(10:12 -0700)
lib/browser/api/browser-window.js
patch
|
blob
|
history
diff --git
a/lib/browser/api/browser-window.js
b/lib/browser/api/browser-window.js
index
e433580
..
6da2fda
100644
(file)
--- a/
lib/browser/api/browser-window.js
+++ b/
lib/browser/api/browser-window.js
@@
-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,