{"action":"created","issue":{"url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/122","labels_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/122/comments","events_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/122/events","html_url":"https://github.com/thlorenz/browserify-shim/issues/122","id":53318968,"number":122,"title":"How do you expose multiple variables? How do I shim Prototype.js?","user":{"login":"EvanCarroll","id":19922,"avatar_url":"https://avatars.githubusercontent.com/u/19922?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanCarroll","html_url":"https://github.com/EvanCarroll","followers_url":"https://api.github.com/users/EvanCarroll/followers","following_url":"https://api.github.com/users/EvanCarroll/following{/other_user}","gists_url":"https://api.github.com/users/EvanCarroll/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanCarroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanCarroll/subscriptions","organizations_url":"https://api.github.com/users/EvanCarroll/orgs","repos_url":"https://api.github.com/users/EvanCarroll/repos","events_url":"https://api.github.com/users/EvanCarroll/events{/privacy}","received_events_url":"https://api.github.com/users/EvanCarroll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-03T23:35:17Z","updated_at":"2015-01-05T11:05:48Z","closed_at":"2015-01-04T13:02:13Z","body":"Prototype.js pollutes the window object with multiple varaibles.. (Class, Ajax, etc).. How do I tell browserify-shim to make all this pollution available to other things being shimmed? Or, how do I say that the things being shimmed require access to this stuff?"},"comment":{"url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/comments/68694517","html_url":"https://github.com/thlorenz/browserify-shim/issues/122#issuecomment-68694517","issue_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/122","id":68694517,"user":{"login":"EvanCarroll","id":19922,"avatar_url":"https://avatars.githubusercontent.com/u/19922?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanCarroll","html_url":"https://github.com/EvanCarroll","followers_url":"https://api.github.com/users/EvanCarroll/followers","following_url":"https://api.github.com/users/EvanCarroll/following{/other_user}","gists_url":"https://api.github.com/users/EvanCarroll/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanCarroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanCarroll/subscriptions","organizations_url":"https://api.github.com/users/EvanCarroll/orgs","repos_url":"https://api.github.com/users/EvanCarroll/repos","events_url":"https://api.github.com/users/EvanCarroll/events{/privacy}","received_events_url":"https://api.github.com/users/EvanCarroll/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T11:05:48Z","updated_at":"2015-01-05T11:05:48Z","body":"I'm still having problems -- though I think I've hacked in a working patch. I just can't get prototype to work at all with this shim..\r\n\r\n```js\r\n, \"browser\": {                          \r\n    \"ppprototype\": \"lib/prototype-1.7.js\" \r\n}\r\n, \"browserify-shim\": {                 \r\n    \"ppprototype\": { \"exports\": \"Class\" }\r\n}\r\n```\r\n\r\nAnd, I still get ` Uncaught ReferenceError: Class is not defined sampBase.js:14`\r\n\r\n```text\r\n 11                                                                |  initialize: function() {                                        \r\n 12 require('ppprototype');                                        |    this.panelList = [];         // array that holds a list of the\r\n 13                                                                | currently installed panels                                       \r\n 14 var Samp = Class.create( {\r\n```"}}