{"action":"created","issue":{"url":"https://api.github.com/repos/azain/electron-window-manager/issues/24","repository_url":"https://api.github.com/repos/azain/electron-window-manager","labels_url":"https://api.github.com/repos/azain/electron-window-manager/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/azain/electron-window-manager/issues/24/comments","events_url":"https://api.github.com/repos/azain/electron-window-manager/issues/24/events","html_url":"https://github.com/azain/electron-window-manager/issues/24","id":196043757,"number":24,"title":"Window.object is null after using windowManager.createNew()","user":{"login":"Bossehasse","id":1983643,"avatar_url":"https://avatars.githubusercontent.com/u/1983643?v=3","gravatar_id":"","url":"https://api.github.com/users/Bossehasse","html_url":"https://github.com/Bossehasse","followers_url":"https://api.github.com/users/Bossehasse/followers","following_url":"https://api.github.com/users/Bossehasse/following{/other_user}","gists_url":"https://api.github.com/users/Bossehasse/gists{/gist_id}","starred_url":"https://api.github.com/users/Bossehasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bossehasse/subscriptions","organizations_url":"https://api.github.com/users/Bossehasse/orgs","repos_url":"https://api.github.com/users/Bossehasse/repos","events_url":"https://api.github.com/users/Bossehasse/events{/privacy}","received_events_url":"https://api.github.com/users/Bossehasse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-16T11:57:31Z","updated_at":"2016-12-18T12:04:04Z","closed_at":"2016-12-17T09:08:29Z","body":"So this is my code:\r\n```javascript\r\ntrayWindow = windowManager.createNew('tray', 'Tray', `${config.url}/tray.html`, null, {\r\n    width: 1000,\r\n    height: 600,\r\n    frame: false,\r\n    resizable: false,\r\n    moveable: false,\r\n    show: false,\r\n    position: 'topLeft'\r\n}, true)\r\n\r\nconsole.log('trayWindow.object:', trayWindow.object) // trayWindow.object: null\r\n```\r\n\r\nIs this how it should be? If I do this:\r\n```javascript\r\ntrayWindow.create()\r\nconsole.log('trayWindow.object:', trayWindow.object) // trayWindow.object: BrowserWindow\r\n```\r\neverything is fine. Just curious if all is as it should be. Seems odd to me that `object` doesn't get set during `createNew()`."},"comment":{"url":"https://api.github.com/repos/azain/electron-window-manager/issues/comments/267817493","html_url":"https://github.com/azain/electron-window-manager/issues/24#issuecomment-267817493","issue_url":"https://api.github.com/repos/azain/electron-window-manager/issues/24","id":267817493,"user":{"login":"Bossehasse","id":1983643,"avatar_url":"https://avatars.githubusercontent.com/u/1983643?v=3","gravatar_id":"","url":"https://api.github.com/users/Bossehasse","html_url":"https://github.com/Bossehasse","followers_url":"https://api.github.com/users/Bossehasse/followers","following_url":"https://api.github.com/users/Bossehasse/following{/other_user}","gists_url":"https://api.github.com/users/Bossehasse/gists{/gist_id}","starred_url":"https://api.github.com/users/Bossehasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bossehasse/subscriptions","organizations_url":"https://api.github.com/users/Bossehasse/orgs","repos_url":"https://api.github.com/users/Bossehasse/repos","events_url":"https://api.github.com/users/Bossehasse/events{/privacy}","received_events_url":"https://api.github.com/users/Bossehasse/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T12:04:04Z","updated_at":"2016-12-18T12:04:04Z","body":"Just updated and the problem still persists. Looking into it, `createWindow()` returns a new `Window` instance, but during the initialization `create()` is never called. And so `object` is never set."}}
{"actor":{"display_login":"Bossehasse"}}