{"action":"created","issue":{"url":"https://api.github.com/repos/janpaepke/ScrollMagic/issues/268","labels_url":"https://api.github.com/repos/janpaepke/ScrollMagic/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/janpaepke/ScrollMagic/issues/268/comments","events_url":"https://api.github.com/repos/janpaepke/ScrollMagic/issues/268/events","html_url":"https://github.com/janpaepke/ScrollMagic/issues/268","id":62218774,"number":268,"title":"jQuery plugin breaks ScrollMagic 2.0.0","user":{"login":"pngoossens","id":11071692,"avatar_url":"https://avatars.githubusercontent.com/u/11071692?v=3","gravatar_id":"","url":"https://api.github.com/users/pngoossens","html_url":"https://github.com/pngoossens","followers_url":"https://api.github.com/users/pngoossens/followers","following_url":"https://api.github.com/users/pngoossens/following{/other_user}","gists_url":"https://api.github.com/users/pngoossens/gists{/gist_id}","starred_url":"https://api.github.com/users/pngoossens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pngoossens/subscriptions","organizations_url":"https://api.github.com/users/pngoossens/orgs","repos_url":"https://api.github.com/users/pngoossens/repos","events_url":"https://api.github.com/users/pngoossens/events{/privacy}","received_events_url":"https://api.github.com/users/pngoossens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/janpaepke/ScrollMagic/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-16T21:49:17Z","updated_at":"2015-03-18T09:09:27Z","closed_at":"2015-03-17T09:19:50Z","body":"Hi,\r\n\r\nincluding the 'jquery.ScrollMagic.js' plugin seems to break ScrollMagic 2.0.0. For example, I've use the following HTML markup:\r\n```\r\n<html>\r\n   <head>\r\n       <script src=\"http://code.jquery.com/jquery-1.11.2.js\"></script>\r\n       <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.0/ScrollMagic.js\"></script>\r\n       <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.0/plugins/jquery.ScrollMagic.js\"></script>\r\n   </head>\r\n    <body>\r\n        ...\r\n    </body>\r\n</html>\r\n```\r\nTyping in `ScrollMagic.version` in Chrome's console yields the following error:\r\n```\r\nUncaught ReferenceError: ScrollMagic is not defined\r\n```\r\nAs soon as I remove the jquery.ScrollMagic.js line from the head of the document, typing in `ScrollMagic.version` correctly returns 2.0.0 as the version. I've also tried the latest 2.x version of jQuery, but the problem persists.\r\n\r\nIs this a bug/issue with ScrollMagic/it's jQuery plugin or a PEBCAK?"},"comment":{"url":"https://api.github.com/repos/janpaepke/ScrollMagic/issues/comments/82833158","html_url":"https://github.com/janpaepke/ScrollMagic/issues/268#issuecomment-82833158","issue_url":"https://api.github.com/repos/janpaepke/ScrollMagic/issues/268","id":82833158,"user":{"login":"pngoossens","id":11071692,"avatar_url":"https://avatars.githubusercontent.com/u/11071692?v=3","gravatar_id":"","url":"https://api.github.com/users/pngoossens","html_url":"https://github.com/pngoossens","followers_url":"https://api.github.com/users/pngoossens/followers","following_url":"https://api.github.com/users/pngoossens/following{/other_user}","gists_url":"https://api.github.com/users/pngoossens/gists{/gist_id}","starred_url":"https://api.github.com/users/pngoossens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pngoossens/subscriptions","organizations_url":"https://api.github.com/users/pngoossens/orgs","repos_url":"https://api.github.com/users/pngoossens/repos","events_url":"https://api.github.com/users/pngoossens/events{/privacy}","received_events_url":"https://api.github.com/users/pngoossens/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T09:09:27Z","updated_at":"2015-03-18T09:09:27Z","body":"Commenting out line 40 of jquery.ScrollMagic.js, or even better switching to ScrollMagic 2.0.1, works like a charm! Thanx!"}}