]> khamidou — GitHub mirrors - electron.git/commitdiff
Create Instance Properties section
authorJessica Lord <jlord@github.com>
Wed, 9 Sep 2015 20:57:35 +0000 (13:57 -0700)
committerJessica Lord <jlord@github.com>
Wed, 9 Sep 2015 20:57:35 +0000 (13:57 -0700)
docs/api/browser-window.md

index ad62cc017cdbb54c79b09b1dbe7bb6ae02005caa..a0f29e349da66fe26b6613179ec7b12839c11730 100644 (file)
@@ -288,11 +288,10 @@ API is not for programming use.
 
 Remove the devtools extension whose name is `name`.
 
-## Instance Methods
 
-Objects created with `new BrowserWindow` have the following instance methods:
+## Instance Properties
 
-**Note** Some methods are only available on specific operating systems and are labeled as such.
+Objects created with `new BrowserWindow` have the following properties:
 
 ```javascript
 var BrowserWindow = require('browser-window');
@@ -302,7 +301,7 @@ var win = new BrowserWindow({ width: 800, height: 600 });
 
 ```
 
-### `win.webContents()`
+### `win.webContents`
 
 The `WebContents` object this window owns, all web page related events and
 operations will be done via it.
@@ -313,16 +312,31 @@ events.
 **Note:** Users should never store this object because it may become `null`
 when the renderer process (web page) has crashed.
 
-### `win.devToolsWebContents()`
+### `win.devToolsWebContents`
 
-Get the `WebContents` of devtools for this window.
+The `WebContents` of devtools for this window.
 
 **Note:** Users should never store this object because it may become `null`
 when the devtools has been closed.
 
-### `win.id()`
+### `win.id`
+
+The unique ID of this window.
+
+
+## Instance Methods
+
+Objects created with `new BrowserWindow` have the following instance methods:
+
+**Note** Some methods are only available on specific operating systems and are labeled as such.
+
+```javascript
+var BrowserWindow = require('browser-window');
 
-Get the unique ID of this window.
+// In this example `win` is our instance
+var win = new BrowserWindow({ width: 800, height: 600 });
+
+```
 
 ### `win.destroy()`