File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ exports.Window = {
56
56
57
57
// Create new shell and get it's routing id.
58
58
var routing_id = nw . createShell ( url , options ) ;
59
- return new global . Window ( routing_id ) ;
59
+
60
+ return new global . Window ( routing_id , options [ 'new-instance' ] ) ;
60
61
}
61
62
} ;
Original file line number Diff line number Diff line change 1
- function Window ( routing_id ) {
1
+ function Window ( routing_id , nobind ) {
2
2
// Get and set id.
3
3
var id = global . __nwObjectsRegistry . allocateId ( ) ;
4
4
Object . defineProperty ( this , 'id' , {
@@ -15,7 +15,8 @@ function Window(routing_id) {
15
15
16
16
// Tell Shell I'm the js delegate of it.
17
17
native function BindToShell ( ) ;
18
- BindToShell ( this . routing_id , this . id ) ;
18
+ if ( ! nobind )
19
+ BindToShell ( this . routing_id , this . id ) ;
19
20
}
20
21
21
22
// Window will inherit EventEmitter in "third_party/node/src/node.js", do
You can’t perform that action at this time.
0 commit comments