{"comment":{"created_at":"2011-10-21T05:02:25Z","body":"I just came across this one too... good to see it is already logged :)","updated_at":"2011-10-21T05:02:25Z","url":"https://api.github.com/repos/blackberry/Ripple-UI/issues/comments/2477776","id":2477776,"user":{"avatar_url":"https://secure.gravatar.com/avatar/e5faa8b38f11e6bf570bf3a626dd4208?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e5faa8b38f11e6bf570bf3a626dd4208","url":"https://api.github.com/users/tneil","id":408517,"login":"tneil"}},"action":"created","issue":{"number":190,"created_at":"2011-10-06T20:05:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"This is reproducible on any platform.\r\n\r\n# example.html\r\n\r\n    <html> \r\n      <body> \r\n        <a href=\"example.html\">link</a> \r\n        <script type=\"text/javascript\"> \r\n          console.log(\"-> eval\");\r\n \r\n          window.addEventListener(\"load\", function () {\r\n            console.log(\"-> load\");\r\n          });\r\n \r\n          window.onload = function () {\r\n            console.log(\"-> onload\");\r\n          };\r\n \r\n          document.addEventListener(\"DOMContentLoaded\", function () {\r\n            console.log(\"-> DOMContentLoaded\");\r\n          });\r\n        </script> \r\n      </body> \r\n    </html> \r\n\r\nLoad the above file into Ripple. and look at the console Log. You will initally see something like this:\r\n\r\n    example.html:6-> eval\r\n    example.html:17-> DOMContentLoaded\r\n    example.html:9-> load\r\n    example.html:13-> onload\r\n    ripple.js:43527 -----------------------------------------------------------\r\n    ripple.js:43527 There be dragons above here!\r\n    ripple.js:43527 Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.)\r\n    ripple.js:43527 Mobile Web :: Ripple :: Initialization Finished (Make it so.)\r\n    example.html:6-> eval\r\n    example.html:17-> DOMContentLoaded\r\n    example.html:13-> onload\r\n    example.html:9-> load\r\n\r\nBut when the link is clicked you will see:\r\n\r\n    example.html:6-> eval\r\n    example.html:17-> DOMContentLoaded\r\n    example.html:9-> load\r\n    example.html:13-> onload\r\n    ripple.js:43527Mobile Web :: -----------------------------------------------------------\r\n    ripple.js:43527Mobile Web :: Pay no attention to that man behind the curtain.\r\n    ripple.js:43527Mobile Web :: Environment Warning up again (Set main batteries to auto-fire cycle)\r\n    ripple.js:43527Mobile Web :: Ripple :: Initialization Finished (Make it so.)\r\n    example.html:6-> eval\r\n    example.html:17-> DOMContentLoaded\r\n    example.html:13-> onload\r\n\r\nWhere our handlers for the load event added with :\r\n\r\n    window.addEventListener(\"load\", function () {});\r\n\r\nare not called after navigating inside of the emulator.\r\n","comments":10,"title":"window load event handlers are not triggered when navigating inside app","updated_at":"2011-10-21T05:02:25Z","url":"https://api.github.com/repos/blackberry/Ripple-UI/issues/190","id":1837266,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/8c178f483ae6cd0a3309a2f659d9b6cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8c178f483ae6cd0a3309a2f659d9b6cf","url":"https://api.github.com/users/gtanner","id":317051,"login":"gtanner"},"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/8c178f483ae6cd0a3309a2f659d9b6cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8c178f483ae6cd0a3309a2f659d9b6cf","url":"https://api.github.com/users/gtanner","id":317051,"login":"gtanner"},"html_url":"https://github.com/blackberry/Ripple-UI/issues/190","labels":[{"name":"Bug","url":"https://api.github.com/repos/blackberry/Ripple-UI/labels/Bug","color":"8A4117"},{"name":"High Severity","url":"https://api.github.com/repos/blackberry/Ripple-UI/labels/High+Severity","color":"DDDDDD"},{"name":"Hotfix","url":"https://api.github.com/repos/blackberry/Ripple-UI/labels/Hotfix","color":"e10c02"},{"name":"Staged","url":"https://api.github.com/repos/blackberry/Ripple-UI/labels/Staged","color":"FF9933"}],"state":"open"},"legacy":{"issue_id":1837266,"comment_id":2477776}}