{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/2c1a10ad0cce0f73e11a2a558a69f97c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2c1a10ad0cce0f73e11a2a558a69f97c","url":"https://api.github.com/users/jamesarosen","login":"jamesarosen","id":2406},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-01T18:05:47Z","comments":1,"closed_at":null,"url":"https://api.github.com/repos/zenorocha/jquery-boilerplate/issues/17","body":"JSLint and JSHint both prefer\r\n\r\n```javascript\r\n(function($) {\r\n  ...\r\n}(jQuery));\r\n```\r\n\r\nto\r\n\r\n```javascript\r\n\r\n(function($) {\r\n  ...\r\n})(jQuery);\r\n```\r\n\r\nI'm not entirely sure of the reasoning, but I prefer my boilerplate pass my JSHint checks. (And if you know of a good reason *not* to do this, I'll gladly change my JSHint checks :) )","html_url":"https://github.com/zenorocha/jquery-boilerplate/issues/17","title":"Move parens inside function invocation","number":17,"id":1397316,"created_at":"2011-08-12T20:25:12Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/7b71787112c807639019917b8ceb6a60?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7b71787112c807639019917b8ceb6a60","url":"https://api.github.com/users/nlew","login":"nlew","id":1149458},"updated_at":"2011-11-01T18:05:47Z","url":"https://api.github.com/repos/zenorocha/jquery-boilerplate/issues/comments/2593673","body":"A function is executed automatically when parentheses follow its braces. One can pass parameters into the automatically executed function just like they would when running it normally. Eg: var result = function( passedVar ){ return passedVar; }( 5 ); //result === 5, not the function that returns passedVar. The following code takes the jquery object, and aliases it to $ within the scope of the function:\r\n(function($) {\r\n  ...\r\n}(jQuery));\r\n","id":2593673,"created_at":"2011-11-01T18:05:47Z"}}