{"action":"created","issue":{"url":"https://api.github.com/repos/jaruba/wcjs-player/issues/34","labels_url":"https://api.github.com/repos/jaruba/wcjs-player/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/jaruba/wcjs-player/issues/34/comments","events_url":"https://api.github.com/repos/jaruba/wcjs-player/issues/34/events","html_url":"https://github.com/jaruba/wcjs-player/issues/34","id":127883049,"number":34,"title":"TypeError: Cannot read property 'addRule' of undefined","user":{"login":"xo1988","id":9153015,"avatar_url":"https://avatars.githubusercontent.com/u/9153015?v=3","gravatar_id":"","url":"https://api.github.com/users/xo1988","html_url":"https://github.com/xo1988","followers_url":"https://api.github.com/users/xo1988/followers","following_url":"https://api.github.com/users/xo1988/following{/other_user}","gists_url":"https://api.github.com/users/xo1988/gists{/gist_id}","starred_url":"https://api.github.com/users/xo1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xo1988/subscriptions","organizations_url":"https://api.github.com/users/xo1988/orgs","repos_url":"https://api.github.com/users/xo1988/repos","events_url":"https://api.github.com/users/xo1988/events{/privacy}","received_events_url":"https://api.github.com/users/xo1988/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T09:40:54Z","updated_at":"2016-01-21T09:54:46Z","closed_at":null,"body":"Using macx64, nwjs, wcjs-player, and I want to open child windows using var gui = require(\"nw.gui\"); and gui.Window.open('player.html');\r\nwhen child window onload i will init the wcjs-player to play video"},"comment":{"url":"https://api.github.com/repos/jaruba/wcjs-player/issues/comments/173520921","html_url":"https://github.com/jaruba/wcjs-player/issues/34#issuecomment-173520921","issue_url":"https://api.github.com/repos/jaruba/wcjs-player/issues/34","id":173520921,"user":{"login":"jaruba","id":1777923,"avatar_url":"https://avatars.githubusercontent.com/u/1777923?v=3","gravatar_id":"","url":"https://api.github.com/users/jaruba","html_url":"https://github.com/jaruba","followers_url":"https://api.github.com/users/jaruba/followers","following_url":"https://api.github.com/users/jaruba/following{/other_user}","gists_url":"https://api.github.com/users/jaruba/gists{/gist_id}","starred_url":"https://api.github.com/users/jaruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaruba/subscriptions","organizations_url":"https://api.github.com/users/jaruba/orgs","repos_url":"https://api.github.com/users/jaruba/repos","events_url":"https://api.github.com/users/jaruba/events{/privacy}","received_events_url":"https://api.github.com/users/jaruba/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T09:54:46Z","updated_at":"2016-01-21T09:54:46Z","body":"I think that's a NW.js bug, it's possible that when you call `window` in the child window, it actually returns the window of the parent instead of the child window.\r\n\r\nI've seen NW.js doing this a few times in other circumstances."}}