{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/5486","repository_url":"https://api.github.com/repos/nwjs/nw.js","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/5486/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/5486/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/5486/events","html_url":"https://github.com/nwjs/nw.js/issues/5486","id":189930314,"number":5486,"title":"tray menu click handle does not work","user":{"login":"lili21","id":4456380,"avatar_url":"https://avatars.githubusercontent.com/u/4456380?v=3","gravatar_id":"","url":"https://api.github.com/users/lili21","html_url":"https://github.com/lili21","followers_url":"https://api.github.com/users/lili21/followers","following_url":"https://api.github.com/users/lili21/following{/other_user}","gists_url":"https://api.github.com/users/lili21/gists{/gist_id}","starred_url":"https://api.github.com/users/lili21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lili21/subscriptions","organizations_url":"https://api.github.com/users/lili21/orgs","repos_url":"https://api.github.com/users/lili21/repos","events_url":"https://api.github.com/users/lili21/events{/privacy}","received_events_url":"https://api.github.com/users/lili21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-17T03:59:28Z","updated_at":"2016-11-17T07:04:56Z","closed_at":null,"body":"```\r\n// running in node context, I stored the nw at inject_js_start\r\nvar nw = require('./nw').get()\r\nvar win = nw.Window.get()\r\nvar tray = new nw.Tray({ title: 'tray' })\r\nvar menu = new nw.Menu()\r\nvar item = new nw.MenuItem({\r\n  label: 'quit',\r\n  click: function () {\r\n    nw.App.quit()\r\n  }\r\n})\r\nmenu.append(item)\r\ntray.menu = menu\r\ntray.on('click', function () {\r\n  win.show()\r\n})\r\n\r\nwin.on('close', function () {\r\n  this.hide()  \r\n})\r\n\r\n```\r\n\r\nsometime it works, but most of the time, It does not. the click handle do not be executed. and no error, no info. nothing.\r\n\r\nwell, It yelled at me about that 'nw.Tray is not a conscturor' , few times. Don't know why.\r\n\r\nmacOs Sierra\r\nnw.js v0.14.7"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/261171598","html_url":"https://github.com/nwjs/nw.js/issues/5486#issuecomment-261171598","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/5486","id":261171598,"user":{"login":"lili21","id":4456380,"avatar_url":"https://avatars.githubusercontent.com/u/4456380?v=3","gravatar_id":"","url":"https://api.github.com/users/lili21","html_url":"https://github.com/lili21","followers_url":"https://api.github.com/users/lili21/followers","following_url":"https://api.github.com/users/lili21/following{/other_user}","gists_url":"https://api.github.com/users/lili21/gists{/gist_id}","starred_url":"https://api.github.com/users/lili21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lili21/subscriptions","organizations_url":"https://api.github.com/users/lili21/orgs","repos_url":"https://api.github.com/users/lili21/repos","events_url":"https://api.github.com/users/lili21/events{/privacy}","received_events_url":"https://api.github.com/users/lili21/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T07:04:56Z","updated_at":"2016-11-17T07:04:56Z","body":"always works ? Huh, weird."}}
{"actor":{"display_login":"lili21"}}