{"action":"closed","issue":{"url":"https://api.github.com/repos/jkuri/ngGallery/issues/10","labels_url":"https://api.github.com/repos/jkuri/ngGallery/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jkuri/ngGallery/issues/10/comments","events_url":"https://api.github.com/repos/jkuri/ngGallery/issues/10/events","html_url":"https://github.com/jkuri/ngGallery/issues/10","id":120933190,"number":10,"title":"Add IIFE and Remove Anonymous Functions","user":{"login":"goingsideways","id":8889005,"avatar_url":"https://avatars.githubusercontent.com/u/8889005?v=3","gravatar_id":"","url":"https://api.github.com/users/goingsideways","html_url":"https://github.com/goingsideways","followers_url":"https://api.github.com/users/goingsideways/followers","following_url":"https://api.github.com/users/goingsideways/following{/other_user}","gists_url":"https://api.github.com/users/goingsideways/gists{/gist_id}","starred_url":"https://api.github.com/users/goingsideways/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goingsideways/subscriptions","organizations_url":"https://api.github.com/users/goingsideways/orgs","repos_url":"https://api.github.com/users/goingsideways/repos","events_url":"https://api.github.com/users/goingsideways/events{/privacy}","received_events_url":"https://api.github.com/users/goingsideways/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T05:18:38Z","updated_at":"2015-12-08T07:02:13Z","closed_at":"2015-12-08T07:02:13Z","body":"Hey, I have created a branch and would like to submit a pull request.\r\n\r\n- added IIFE around module / directive\r\n- removed anonymous function for ngGallery\r\n- added $inject for dependency injection\r\n\r\n```javascript\r\n( function () {\r\n\t'use strict';\r\n\tangular.module(  'jkuri.gallery', []  ).directive(  'ngGallery', ngGallery  );\r\n\t\r\n\tngGallery.$inject = [ '$document', '$timeout', '$q', '$templateCache' ];\r\n\t\r\n\tfunction ngGallery(  $document, $timeout, $q, $templateCache  ) {\r\n        /** CODE OMIT **/\r\n        }\r\n} )();\r\n\r\n"}}