{"action":"created","issue":{"url":"https://api.github.com/repos/paulmillr/exoskeleton/issues/116","labels_url":"https://api.github.com/repos/paulmillr/exoskeleton/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/exoskeleton/issues/116/comments","events_url":"https://api.github.com/repos/paulmillr/exoskeleton/issues/116/events","html_url":"https://github.com/paulmillr/exoskeleton/issues/116","id":112559018,"number":116,"title":"ExosJS + RequireJS without jQuery and Underscore","user":{"login":"Inateno","id":1068709,"avatar_url":"https://avatars.githubusercontent.com/u/1068709?v=3","gravatar_id":"","url":"https://api.github.com/users/Inateno","html_url":"https://github.com/Inateno","followers_url":"https://api.github.com/users/Inateno/followers","following_url":"https://api.github.com/users/Inateno/following{/other_user}","gists_url":"https://api.github.com/users/Inateno/gists{/gist_id}","starred_url":"https://api.github.com/users/Inateno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Inateno/subscriptions","organizations_url":"https://api.github.com/users/Inateno/orgs","repos_url":"https://api.github.com/users/Inateno/repos","events_url":"https://api.github.com/users/Inateno/events{/privacy}","received_events_url":"https://api.github.com/users/Inateno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T10:39:47Z","updated_at":"2015-10-21T16:53:56Z","closed_at":"2015-10-21T16:53:56Z","body":"I'm trying to load exosekeleton with RequireJS and saw that:\r\n\r\n```javascript\r\nif (typeof define === 'function' && define.amd) {\r\n    define(['underscore', 'jquery', 'exports'], function(_, $, exports) {\r\n      root.Backbone = root.Exoskeleton = factory(root, exports, _, $);\r\n    });\r\n}\r\n```\r\n\r\nI didn't see anything inside RequireJS to ignore these modules, my current solution is to replace it by\r\n\r\n```javascript\r\nif (typeof define === 'function' && define.amd) {\r\n    define(['underscore', 'jquery', 'exports'], function(_, $, exports) {\r\n      root.Backbone = root.Exoskeleton = factory(root, exports, root._, (root.jQuery || root.Zepto || root.ender || root.$));\r\n    });\r\n}\r\n```\r\n\r\nMaybe we could add an if/else a window or define options value, and test it to let user choice amd without jquery and co ?\r\n```\r\nif ( define.amd.jQuery === false || window.usejQuery === false )\r\n  // load without jQuery+\r\nelse\r\n  // load with jQuery+\r\n```\r\n\r\n?\r\n\r\nBests"},"comment":{"url":"https://api.github.com/repos/paulmillr/exoskeleton/issues/comments/149960410","html_url":"https://github.com/paulmillr/exoskeleton/issues/116#issuecomment-149960410","issue_url":"https://api.github.com/repos/paulmillr/exoskeleton/issues/116","id":149960410,"user":{"login":"akre54","id":931368,"avatar_url":"https://avatars.githubusercontent.com/u/931368?v=3","gravatar_id":"","url":"https://api.github.com/users/akre54","html_url":"https://github.com/akre54","followers_url":"https://api.github.com/users/akre54/followers","following_url":"https://api.github.com/users/akre54/following{/other_user}","gists_url":"https://api.github.com/users/akre54/gists{/gist_id}","starred_url":"https://api.github.com/users/akre54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akre54/subscriptions","organizations_url":"https://api.github.com/users/akre54/orgs","repos_url":"https://api.github.com/users/akre54/repos","events_url":"https://api.github.com/users/akre54/events{/privacy}","received_events_url":"https://api.github.com/users/akre54/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T16:53:56Z","updated_at":"2015-10-21T16:53:56Z","body":"Use the [`empty`](http://requirejs.org/docs/optimization.html#empty) config in your requirejs paths. Exoskeleton should do the right thing and ignore jQuery."}}