{"action":"opened","issue":{"url":"https://api.github.com/repos/ryanwischkaemper/aurelia-nw/issues/7","labels_url":"https://api.github.com/repos/ryanwischkaemper/aurelia-nw/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ryanwischkaemper/aurelia-nw/issues/7/comments","events_url":"https://api.github.com/repos/ryanwischkaemper/aurelia-nw/issues/7/events","html_url":"https://github.com/ryanwischkaemper/aurelia-nw/issues/7","id":127023340,"number":7,"title":"new gui.Menu() Not working .....need help","user":{"login":"ramesh-daffodil","id":11285768,"avatar_url":"https://avatars.githubusercontent.com/u/11285768?v=3","gravatar_id":"","url":"https://api.github.com/users/ramesh-daffodil","html_url":"https://github.com/ramesh-daffodil","followers_url":"https://api.github.com/users/ramesh-daffodil/followers","following_url":"https://api.github.com/users/ramesh-daffodil/following{/other_user}","gists_url":"https://api.github.com/users/ramesh-daffodil/gists{/gist_id}","starred_url":"https://api.github.com/users/ramesh-daffodil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramesh-daffodil/subscriptions","organizations_url":"https://api.github.com/users/ramesh-daffodil/orgs","repos_url":"https://api.github.com/users/ramesh-daffodil/repos","events_url":"https://api.github.com/users/ramesh-daffodil/events{/privacy}","received_events_url":"https://api.github.com/users/ramesh-daffodil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-16T12:58:24Z","updated_at":"2016-01-16T12:58:24Z","closed_at":null,"body":"I am using nw.js with aurelia .. I am able to require(\"nw.gui\"). But I am not able to create new gui.Menu() .\r\nSome code for reference\r\nvar gui = require('nw.gui');\r\nexport class App {\r\nadd_collection () {\r\nconsole.log(\"add collection called\");\r\n}\r\nattached() {\r\nconsole.log(\"attached called\",gui);\r\nvar menu = new gui.Menu();\r\nmenu.append(new gui.MenuItem({\r\nlabel: 'Add Collection',\r\nclick: this.add_collection\r\n}));\r\n$(\"body\").bind('contextmenu', function(ev) {\r\nev.preventDefault();\r\nmenu.popup(ev.pageX, ev.pageY);\r\nreturn false;\r\n});\r\n}\r\n}\r\nAny one can help me on this????? Thanx in advance"}}