{"action":"created","issue":{"url":"https://api.github.com/repos/allenhwkim/angular-jsdoc/issues/65","repository_url":"https://api.github.com/repos/allenhwkim/angular-jsdoc","labels_url":"https://api.github.com/repos/allenhwkim/angular-jsdoc/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/allenhwkim/angular-jsdoc/issues/65/comments","events_url":"https://api.github.com/repos/allenhwkim/angular-jsdoc/issues/65/events","html_url":"https://github.com/allenhwkim/angular-jsdoc/issues/65","id":146546366,"number":65,"title":"Have to explicitly define membership when inside IIFE, but not if not enclosed in IIFE","user":{"login":"sjclemmy","id":1101854,"avatar_url":"https://avatars.githubusercontent.com/u/1101854?v=3","gravatar_id":"","url":"https://api.github.com/users/sjclemmy","html_url":"https://github.com/sjclemmy","followers_url":"https://api.github.com/users/sjclemmy/followers","following_url":"https://api.github.com/users/sjclemmy/following{/other_user}","gists_url":"https://api.github.com/users/sjclemmy/gists{/gist_id}","starred_url":"https://api.github.com/users/sjclemmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjclemmy/subscriptions","organizations_url":"https://api.github.com/users/sjclemmy/orgs","repos_url":"https://api.github.com/users/sjclemmy/repos","events_url":"https://api.github.com/users/sjclemmy/events{/privacy}","received_events_url":"https://api.github.com/users/sjclemmy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-07T08:31:46Z","updated_at":"2016-04-21T23:50:08Z","closed_at":null,"body":"If I declare my service definition in a file thus:\r\n\r\n```\r\nmyParent.factory('fileplanState', fileplanState);\r\n\r\n/**\r\n * @memberof myParent\r\n * @name fileplanState\r\n * @ngdoc service\r\n * @param $log\r\n */\r\nfunction fileplanState ($log) {\r\n\r\n\r\n  /**\r\n   *\r\n   * @returns {*}\r\n   */\r\n  function getFileplanRoot() {\r\n//...code\r\n}\r\n```\r\n\r\nThe method description resolves automatically.\r\n\r\nHowever if I wrap this code in an IIFE:\r\n```\r\n(function (myParent){\r\n//put the above code in here...\r\n})(myParent);\r\n```\r\nThe method description for `getFileplanRoot()` disappears unless I add `@memberof fileplanState`\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/allenhwkim/angular-jsdoc/issues/comments/213162680","html_url":"https://github.com/allenhwkim/angular-jsdoc/issues/65#issuecomment-213162680","issue_url":"https://api.github.com/repos/allenhwkim/angular-jsdoc/issues/65","id":213162680,"user":{"login":"reloaded","id":1775239,"avatar_url":"https://avatars.githubusercontent.com/u/1775239?v=3","gravatar_id":"","url":"https://api.github.com/users/reloaded","html_url":"https://github.com/reloaded","followers_url":"https://api.github.com/users/reloaded/followers","following_url":"https://api.github.com/users/reloaded/following{/other_user}","gists_url":"https://api.github.com/users/reloaded/gists{/gist_id}","starred_url":"https://api.github.com/users/reloaded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reloaded/subscriptions","organizations_url":"https://api.github.com/users/reloaded/orgs","repos_url":"https://api.github.com/users/reloaded/repos","events_url":"https://api.github.com/users/reloaded/events{/privacy}","received_events_url":"https://api.github.com/users/reloaded/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T23:50:08Z","updated_at":"2016-04-21T23:50:08Z","body":"That would explain why I have to put @memberof for all of my doc blocks. I wonder if this is a bug or limitation with jsdoc itself?"}}