{"action":"created","issue":{"url":"https://api.github.com/repos/bitovi/canjs/issues/1288","labels_url":"https://api.github.com/repos/bitovi/canjs/issues/1288/labels{/name}","comments_url":"https://api.github.com/repos/bitovi/canjs/issues/1288/comments","events_url":"https://api.github.com/repos/bitovi/canjs/issues/1288/events","html_url":"https://github.com/bitovi/canjs/issues/1288","id":46920489,"number":1288,"title":"$.fn.scope undefined when using CommonJS","user":{"login":"ccummings","id":464282,"avatar_url":"https://avatars.githubusercontent.com/u/464282?v=3","gravatar_id":"","url":"https://api.github.com/users/ccummings","html_url":"https://github.com/ccummings","followers_url":"https://api.github.com/users/ccummings/followers","following_url":"https://api.github.com/users/ccummings/following{/other_user}","gists_url":"https://api.github.com/users/ccummings/gists{/gist_id}","starred_url":"https://api.github.com/users/ccummings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccummings/subscriptions","organizations_url":"https://api.github.com/users/ccummings/orgs","repos_url":"https://api.github.com/users/ccummings/repos","events_url":"https://api.github.com/users/ccummings/events{/privacy}","received_events_url":"https://api.github.com/users/ccummings/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitovi/canjs/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"Guamaso","id":2633542,"avatar_url":"https://avatars.githubusercontent.com/u/2633542?v=3","gravatar_id":"","url":"https://api.github.com/users/Guamaso","html_url":"https://github.com/Guamaso","followers_url":"https://api.github.com/users/Guamaso/followers","following_url":"https://api.github.com/users/Guamaso/following{/other_user}","gists_url":"https://api.github.com/users/Guamaso/gists{/gist_id}","starred_url":"https://api.github.com/users/Guamaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guamaso/subscriptions","organizations_url":"https://api.github.com/users/Guamaso/orgs","repos_url":"https://api.github.com/users/Guamaso/repos","events_url":"https://api.github.com/users/Guamaso/events{/privacy}","received_events_url":"https://api.github.com/users/Guamaso/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bitovi/canjs/milestones/24","labels_url":"https://api.github.com/repos/bitovi/canjs/milestones/24/labels","id":695259,"number":24,"title":"2.1.4","description":"Next patch release","creator":{"login":"daffl","id":338316,"avatar_url":"https://avatars.githubusercontent.com/u/338316?v=3","gravatar_id":"","url":"https://api.github.com/users/daffl","html_url":"https://github.com/daffl","followers_url":"https://api.github.com/users/daffl/followers","following_url":"https://api.github.com/users/daffl/following{/other_user}","gists_url":"https://api.github.com/users/daffl/gists{/gist_id}","starred_url":"https://api.github.com/users/daffl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daffl/subscriptions","organizations_url":"https://api.github.com/users/daffl/orgs","repos_url":"https://api.github.com/users/daffl/repos","events_url":"https://api.github.com/users/daffl/events{/privacy}","received_events_url":"https://api.github.com/users/daffl/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":27,"state":"closed","created_at":"2014-06-18T22:50:56Z","updated_at":"2014-11-21T22:22:50Z","due_on":"2014-11-12T08:00:00Z","closed_at":"2014-11-21T22:22:50Z"},"comments":3,"created_at":"2014-10-27T15:39:22Z","updated_at":"2015-01-14T21:15:12Z","closed_at":"2014-11-06T18:35:33Z","body":"I'm using CanJS in a Browserify application and noticed the scope jQuery plugin is not defined.\r\n\r\nThis happens because can.Component checks if `window.$` is defined before adding the plugin but in a CommonJS environment, jQuery does not add `$` to `window`.\r\n> Source: https://github.com/bitovi/canjs/blob/master/component/component.js#L423\r\n\r\nI think a much safer check would be `window.jQuery` since that always seems to be exposed."},"comment":{"url":"https://api.github.com/repos/bitovi/canjs/issues/comments/69993245","html_url":"https://github.com/bitovi/canjs/issues/1288#issuecomment-69993245","issue_url":"https://api.github.com/repos/bitovi/canjs/issues/1288","id":69993245,"user":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T21:15:12Z","updated_at":"2015-01-14T21:15:12Z","body":"I mean `if(can.$.fn) { can.$.fn = function{ ... } }`\r\n\r\nBut people can use `$().scope()`"}}