nw.Window.open callback returns undefined object when using new_instance
See original GitHub issueIn nwjs 0.13-beta6, win64 SDK build, when opening a new window with “new_instance” set to true, the Window.open callback returns an undefined object. Even the ‘this’ object is undefined.
nw.Window.open('new.html', {
'new_instance': true
},function(win){
// win is undefined here
});
Edit: Unless this is by design because the new window will have a new context that we are not supposed to access?
Issue Analytics
- State:
- Created 8 years ago
- Comments:54 (17 by maintainers)
Top Results From Across the Web
Why is a new instance of a object undefined? - Stack Overflow
I am unable to use the same instance of an object in another java-script file using nodejs. I'm working on a bot for...
Read more >Why “this” gets undefined inside a function - Dev Genius
Before getting into the “this” keyword, let's first understand “undefined”. In simple words, if we try to understand, “undefined” is the absence of...
Read more >What to do when “this” loses context - freeCodeCamp
A way to fix the problem is to create new functions in the constructor using bind(this) . constructor(){ super(); this.todos = []; this....
Read more >Window - NW.js Documentation
This function returns a Window object via the callback. You can use any properties and methods of Window except the events. See also...
Read more >this - JavaScript | MDN
If a function is called with this set to undefined or null , this gets ... constructors: the this value is the new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you Roger for this project. You are enabling many people to create the future!
0.35.4 was just released with a testing version of #5875. This issue is fixed under it. Please see more information in that issue. Thanks.