{"action":"created","issue":{"url":"https://api.github.com/repos/imakewebthings/waypoints/issues/390","labels_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/390/comments","events_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/390/events","html_url":"https://github.com/imakewebthings/waypoints/issues/390","id":63914277,"number":390,"title":"oldWindowLoad is not defined error","user":{"login":"illepic","id":295127,"avatar_url":"https://avatars.githubusercontent.com/u/295127?v=3","gravatar_id":"","url":"https://api.github.com/users/illepic","html_url":"https://github.com/illepic","followers_url":"https://api.github.com/users/illepic/followers","following_url":"https://api.github.com/users/illepic/following{/other_user}","gists_url":"https://api.github.com/users/illepic/gists{/gist_id}","starred_url":"https://api.github.com/users/illepic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illepic/subscriptions","organizations_url":"https://api.github.com/users/illepic/orgs","repos_url":"https://api.github.com/users/illepic/repos","events_url":"https://api.github.com/users/illepic/events{/privacy}","received_events_url":"https://api.github.com/users/illepic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-24T06:18:53Z","updated_at":"2015-04-16T15:09:01Z","closed_at":null,"body":"On jQuery 1.8 and Waypoints 3.1.1, I get the following error in *Chrome only*:\r\n\r\n    Uncaught ReferenceError: oldWindowLoad is not defined        VM9050:2\r\n\r\nThe \"VM9050\" file appears to be a Chrome optimized file that looks like:\r\n\r\n````\r\n(function(e\r\n/**/) {\r\n{\r\n    if (oldWindowLoad) {\r\n      oldWindowLoad()\r\n    }\r\n    Context.refreshAll()\r\n  };cY(e);\r\n})\r\n````\r\n\r\nThis all corresponds in jquery.waypoints.js, line 177:\r\n\r\n    var oldWindowLoad = window.onload\r\n\r\nAnd lines 449 - 454:\r\n\r\n````\r\n  window.onload = function() {\r\n    if (oldWindowLoad) {\r\n      oldWindowLoad()\r\n    }\r\n    Context.refreshAll()\r\n  }\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/imakewebthings/waypoints/issues/comments/93758766","html_url":"https://github.com/imakewebthings/waypoints/issues/390#issuecomment-93758766","issue_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/390","id":93758766,"user":{"login":"imakewebthings","id":406639,"avatar_url":"https://avatars.githubusercontent.com/u/406639?v=3","gravatar_id":"","url":"https://api.github.com/users/imakewebthings","html_url":"https://github.com/imakewebthings","followers_url":"https://api.github.com/users/imakewebthings/followers","following_url":"https://api.github.com/users/imakewebthings/following{/other_user}","gists_url":"https://api.github.com/users/imakewebthings/gists{/gist_id}","starred_url":"https://api.github.com/users/imakewebthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imakewebthings/subscriptions","organizations_url":"https://api.github.com/users/imakewebthings/orgs","repos_url":"https://api.github.com/users/imakewebthings/repos","events_url":"https://api.github.com/users/imakewebthings/events{/privacy}","received_events_url":"https://api.github.com/users/imakewebthings/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T15:09:01Z","updated_at":"2015-04-16T15:09:01Z","body":"@illepic Are you using some kind of script loader that uses `eval` to execute Waypoints? I haven't found reason for Chrome to break up a script into a bunch of VM chunks outside of that, nor do I understand, even if you were, why Chrome would break it up in a way that broke references to variables that are clearly within the same scope."}}