{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/488d67517781a9cb5becb4d009f06787?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"488d67517781a9cb5becb4d009f06787","url":"https://api.github.com/users/brentlintner","login":"brentlintner","id":93340},"milestone":null,"assignee":null,"labels":[{"name":"Bug","color":"8A4117","url":"https://api.github.com/repos/blackberry/Ripple-UI/labels/Bug"},{"name":"High Severity","color":"DDDDDD","url":"https://api.github.com/repos/blackberry/Ripple-UI/labels/High+Severity"}],"updated_at":"2011-11-02T15:39:10Z","comments":10,"closed_at":null,"url":"https://api.github.com/repos/blackberry/Ripple-UI/issues/217","body":"**Steps**\r\n\r\n1. Run this code:\r\n\r\n```javascript\r\nwindow.addEventListener('load', function () {\r\n    console.log(arguments);\r\n});\r\n```\r\nExpected: An Event object to be passed into callback (as first arg)\r\nActual: Empty object\r\n\r\nA user reported this as well (happening in a MS Ajax framework (see this [app](http://m.azbar.org/) for example)), where the eventObject (first arg) comes back it does not have a type attribute (i.e. undefined.toLowerCase())\r\n\r\nThe main issue is here: https://github.com/blackberry/Ripple-UI/blob/next/lib/ripple/bootstrap.js#L66\r\n\r\nAt a brief look, I think this should be easy enough to fix by manually listening for those events (DOMContentLoaded comes first, and onload is where they are both fired anyways).\r\n\r\n**Note**: Update the console.error logging as well (errors are not helpful without stack trace) to:\r\n\r\n```javascript\r\nconsole.error(e.stack || e);\r\n```","html_url":"https://github.com/blackberry/Ripple-UI/issues/217","number":217,"title":"[ripple/boostrap] does not pass event object to listeners on window load/DOMContentLoaded","id":2075279,"created_at":"2011-10-28T03:12:21Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/3b422c1a037b89d4ddf5bef834dbdeef?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3b422c1a037b89d4ddf5bef834dbdeef","url":"https://api.github.com/users/kwallis","login":"kwallis","id":498318},"updated_at":"2011-11-02T15:39:10Z","url":"https://api.github.com/repos/blackberry/Ripple-UI/issues/comments/2604938","body":"This got fixed, and is in the latest next stuff, correct?","id":2604938,"created_at":"2011-11-02T15:39:10Z"}}