{"action":"opened","issue":{"url":"https://api.github.com/repos/MrSwitch/hello.js/issues/256","labels_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/256/comments","events_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/256/events","html_url":"https://github.com/MrSwitch/hello.js/issues/256","id":81625611,"number":256,"title":"bool is not defined","user":{"login":"constellates","id":4325905,"avatar_url":"https://avatars.githubusercontent.com/u/4325905?v=3","gravatar_id":"","url":"https://api.github.com/users/constellates","html_url":"https://github.com/constellates","followers_url":"https://api.github.com/users/constellates/followers","following_url":"https://api.github.com/users/constellates/following{/other_user}","gists_url":"https://api.github.com/users/constellates/gists{/gist_id}","starred_url":"https://api.github.com/users/constellates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constellates/subscriptions","organizations_url":"https://api.github.com/users/constellates/orgs","repos_url":"https://api.github.com/users/constellates/repos","events_url":"https://api.github.com/users/constellates/events{/privacy}","received_events_url":"https://api.github.com/users/constellates/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T21:08:07Z","updated_at":"2015-05-27T21:08:07Z","closed_at":null,"body":"I'm trying to use hello.js for the first time to authenticate with google OAuth2 and although everything seems to be functionally working I'm getting \"bool is not defined\" logged to the console every time google redirects back to my application. I believe this error is logging through the first catch block of the following globalEvent function.\r\n\r\n\t// Global Events\r\n\t// Attach the callback to the window object\r\n\t// Return its unique reference\r\n\tglobalEvent: function(callback, guid) {\r\n\t\t// If the guid has not been supplied then create a new one.\r\n\t\tguid = guid || '_hellojs_' + parseInt(Math.random() * 1e12, 10).toString(36);\r\n\r\n\t\t// Define the callback function\r\n\t\twindow[guid] = function() {\r\n\t\t\t// Trigger the callback\r\n\t\t\ttry {\r\n\t\t\t\tbool = callback.apply(this, arguments);\r\n\t\t\t}\r\n\t\t\tcatch (e) {\r\n\t\t\t\tconsole.error(e);\r\n\t\t\t}\r\n\r\n\t\t\tif (bool) {\r\n\t\t\t\t// Remove this handler reference\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdelete window[guid];\r\n\t\t\t\t}\r\n\t\t\t\tcatch (e) {}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\treturn guid;\r\n\t},\r\n\r\nLet me know if you have an idea what could be causing this or if there's further information I could provide regarding this issue."}}