{"action":"opened","issue":{"url":"https://api.github.com/repos/MrSwitch/notification.js/issues/8","labels_url":"https://api.github.com/repos/MrSwitch/notification.js/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/MrSwitch/notification.js/issues/8/comments","events_url":"https://api.github.com/repos/MrSwitch/notification.js/issues/8/events","html_url":"https://github.com/MrSwitch/notification.js/issues/8","id":112358644,"number":8,"title":"onclick and onclose events","user":{"login":"manuelvanrijn","id":331876,"avatar_url":"https://avatars.githubusercontent.com/u/331876?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelvanrijn","html_url":"https://github.com/manuelvanrijn","followers_url":"https://api.github.com/users/manuelvanrijn/followers","following_url":"https://api.github.com/users/manuelvanrijn/following{/other_user}","gists_url":"https://api.github.com/users/manuelvanrijn/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelvanrijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelvanrijn/subscriptions","organizations_url":"https://api.github.com/users/manuelvanrijn/orgs","repos_url":"https://api.github.com/users/manuelvanrijn/repos","events_url":"https://api.github.com/users/manuelvanrijn/events{/privacy}","received_events_url":"https://api.github.com/users/manuelvanrijn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-20T12:37:04Z","updated_at":"2015-10-20T12:37:04Z","closed_at":null,"body":"Is there any reason why you explicitly have the code:\r\n\r\n```\r\nthis.onclick = function(){};\r\nthis.onclose = function(){};\r\n```\r\n\r\ninstead of:\r\n\r\n```\r\nthis.onclick = options.onclick || function(){};\r\nthis.onclose = options.onclose || function(){};\r\n```\r\n?"}}