{"action":"created","issue":{"url":"https://api.github.com/repos/malihu/malihu-custom-scrollbar-plugin/issues/234","labels_url":"https://api.github.com/repos/malihu/malihu-custom-scrollbar-plugin/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/malihu/malihu-custom-scrollbar-plugin/issues/234/comments","events_url":"https://api.github.com/repos/malihu/malihu-custom-scrollbar-plugin/issues/234/events","html_url":"https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/234","id":51898033,"number":234,"title":"Browserify support","user":{"login":"M0on75e1l","id":8426911,"avatar_url":"https://avatars.githubusercontent.com/u/8426911?v=3","gravatar_id":"","url":"https://api.github.com/users/M0on75e1l","html_url":"https://github.com/M0on75e1l","followers_url":"https://api.github.com/users/M0on75e1l/followers","following_url":"https://api.github.com/users/M0on75e1l/following{/other_user}","gists_url":"https://api.github.com/users/M0on75e1l/gists{/gist_id}","starred_url":"https://api.github.com/users/M0on75e1l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M0on75e1l/subscriptions","organizations_url":"https://api.github.com/users/M0on75e1l/orgs","repos_url":"https://api.github.com/users/M0on75e1l/repos","events_url":"https://api.github.com/users/M0on75e1l/events{/privacy}","received_events_url":"https://api.github.com/users/M0on75e1l/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-13T20:06:20Z","updated_at":"2015-02-04T17:12:08Z","closed_at":null,"body":"First of all, I want to thank you for creating such a great tool, and sorry for my bad English, hope you will be able to understand what I am trying to ask.\r\nI am new to things like RequireJS and CommonJS, so for learning purposes I am now working on a small jQuery-based chat application, based on CommonJS approach for including dependencies and Gulp with Browserify for browser support. I also want your plugin for scrollbars. I've installed npm-package, and now, when I am trying to include it in my \"chat.js\" file with \"require(...), it behaves just like if I include it using \"script\" tags, assigning itself to a global jQuery object. One of my aims was to create a chat module, which I can just take, and place into another project, without worrying about dependencies. So the chat will have it's own local npm-required jQuery object, and all other necessary libraries included locally. My question is: how can I assign this plugin to some local jQuery object in my module, to use it with browserify? Or is this a wrong approach of using CommonJS? I've seen some other tools like browserify-shim, but I am not sure is this what I really need. I understand that maybe this question is a little offtopic, but anyway hope you can give me some ideas."},"comment":{"url":"https://api.github.com/repos/malihu/malihu-custom-scrollbar-plugin/issues/comments/72895450","html_url":"https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/234#issuecomment-72895450","issue_url":"https://api.github.com/repos/malihu/malihu-custom-scrollbar-plugin/issues/234","id":72895450,"user":{"login":"jesusprubio","id":2753855,"avatar_url":"https://avatars.githubusercontent.com/u/2753855?v=3","gravatar_id":"","url":"https://api.github.com/users/jesusprubio","html_url":"https://github.com/jesusprubio","followers_url":"https://api.github.com/users/jesusprubio/followers","following_url":"https://api.github.com/users/jesusprubio/following{/other_user}","gists_url":"https://api.github.com/users/jesusprubio/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusprubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusprubio/subscriptions","organizations_url":"https://api.github.com/users/jesusprubio/orgs","repos_url":"https://api.github.com/users/jesusprubio/repos","events_url":"https://api.github.com/users/jesusprubio/events{/privacy}","received_events_url":"https://api.github.com/users/jesusprubio/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T17:12:08Z","updated_at":"2015-02-04T17:12:08Z","body":"Hi, you're right, really we need the same because to pollute the global namespace is a bad practice. Moreover is a must in situations like described here: https://github.com/twbs/bootstrap/pull/15640#issuecomment-71096192\r\n\r\nI'm trying to make this library compatible with browserify (in this way) but I thin I need help from developers of the project. :("}}