{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/3608","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/3608/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/3608/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/3608/events","html_url":"https://github.com/nwjs/nw.js/issues/3608","id":90712179,"number":3608,"title":"Opening windows in a loop.","user":{"login":"tr0yka","id":2771379,"avatar_url":"https://avatars.githubusercontent.com/u/2771379?v=3","gravatar_id":"","url":"https://api.github.com/users/tr0yka","html_url":"https://github.com/tr0yka","followers_url":"https://api.github.com/users/tr0yka/followers","following_url":"https://api.github.com/users/tr0yka/following{/other_user}","gists_url":"https://api.github.com/users/tr0yka/gists{/gist_id}","starred_url":"https://api.github.com/users/tr0yka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tr0yka/subscriptions","organizations_url":"https://api.github.com/users/tr0yka/orgs","repos_url":"https://api.github.com/users/tr0yka/repos","events_url":"https://api.github.com/users/tr0yka/events{/privacy}","received_events_url":"https://api.github.com/users/tr0yka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-24T15:37:02Z","updated_at":"2015-06-24T21:16:51Z","closed_at":null,"body":"```javascript\r\nfor(var j=0;j<urls.length;j++){\r\n\t\t\t\r\n\twin[j] = gui.Window.open(urls[j],{\r\n\t position: 'center',\r\n\twidth: 800,\r\n\theight: 600,\r\n\t \"toolbar\": true,\r\n\t\"show\":false\r\n});\r\n\r\nwin[j].on('loaded',function(){\r\n\t\t\tcon[j] = win[j].window.document;\r\n\t\t});\r\n}\r\n```\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'window' of undefined\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/22942219-opening-windows-in-a-loop?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F51989&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/115015178","html_url":"https://github.com/nwjs/nw.js/issues/3608#issuecomment-115015178","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/3608","id":115015178,"user":{"login":"tr0yka","id":2771379,"avatar_url":"https://avatars.githubusercontent.com/u/2771379?v=3","gravatar_id":"","url":"https://api.github.com/users/tr0yka","html_url":"https://github.com/tr0yka","followers_url":"https://api.github.com/users/tr0yka/followers","following_url":"https://api.github.com/users/tr0yka/following{/other_user}","gists_url":"https://api.github.com/users/tr0yka/gists{/gist_id}","starred_url":"https://api.github.com/users/tr0yka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tr0yka/subscriptions","organizations_url":"https://api.github.com/users/tr0yka/orgs","repos_url":"https://api.github.com/users/tr0yka/repos","events_url":"https://api.github.com/users/tr0yka/events{/privacy}","received_events_url":"https://api.github.com/users/tr0yka/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T21:16:51Z","updated_at":"2015-06-24T21:16:51Z","body":"@jgoalby \r\n```javascript\r\nfor(var j=0;j<urls.length-1;j++)\r\n```\r\nIt does not work"}}