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:
c5f8fbf
)
Get webContents on request.
author
Cheng Zhao
<zcbenz@gmail.com>
Fri, 25 Apr 2014 02:57:45 +0000
(10:57 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Fri, 25 Apr 2014 02:57:45 +0000
(10:57 +0800)
atom/browser/api/lib/browser-window.coffee
patch
|
blob
|
history
diff --git
a/atom/browser/api/lib/browser-window.coffee
b/atom/browser/api/lib/browser-window.coffee
index
d9cfb5a
..
1687604
100644
(file)
--- a/
atom/browser/api/lib/browser-window.coffee
+++ b/
atom/browser/api/lib/browser-window.coffee
@@
-15,7
+15,9
@@
BrowserWindow::_init = ->
@setMenu menu if menu?
# Define getter for webContents.
- @webContents = @getWebContents()
+ @__webContents = null
+ @__defineGetter__ 'webContents', ->
+ @__webContents ?= @getWebContents()
@__devToolsWebContents = null
@__defineGetter__ 'devToolsWebContents', ->
if @isDevToolsOpened()