{"action":"created","issue":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/100","labels_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/100/comments","events_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/100/events","html_url":"https://github.com/neveldo/jQuery-Mapael/pull/100","id":115588952,"number":100,"title":"JSHint: moved function out of loop","user":{"login":"Indigo744","id":7137528,"avatar_url":"https://avatars.githubusercontent.com/u/7137528?v=3","gravatar_id":"","url":"https://api.github.com/users/Indigo744","html_url":"https://github.com/Indigo744","followers_url":"https://api.github.com/users/Indigo744/followers","following_url":"https://api.github.com/users/Indigo744/following{/other_user}","gists_url":"https://api.github.com/users/Indigo744/gists{/gist_id}","starred_url":"https://api.github.com/users/Indigo744/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Indigo744/subscriptions","organizations_url":"https://api.github.com/users/Indigo744/orgs","repos_url":"https://api.github.com/users/Indigo744/repos","events_url":"https://api.github.com/users/Indigo744/events{/privacy}","received_events_url":"https://api.github.com/users/Indigo744/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-06T21:02:29Z","updated_at":"2015-11-09T09:35:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/100","html_url":"https://github.com/neveldo/jQuery-Mapael/pull/100","diff_url":"https://github.com/neveldo/jQuery-Mapael/pull/100.diff","patch_url":"https://github.com/neveldo/jQuery-Mapael/pull/100.patch"},"body":"Fixes 2 JSHint warning: `Don't make functions within a loop.` (neveldo/jQuery-Mapael#89)\r\nI found that the loop to delete the plots is quite similar to the one to delete links. Hence, I created a single function `fnRemovePlot()` which is used by each.\r\nAfter that, I noticed the same pattern for the loop to show the new plots and the new links. Hence I created a new function `fnShowPlot()` which is used by both.\r\nCode rationalization! Yiaie!"},"comment":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/comments/155009552","html_url":"https://github.com/neveldo/jQuery-Mapael/pull/100#issuecomment-155009552","issue_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/100","id":155009552,"user":{"login":"neveldo","id":1663176,"avatar_url":"https://avatars.githubusercontent.com/u/1663176?v=3","gravatar_id":"","url":"https://api.github.com/users/neveldo","html_url":"https://github.com/neveldo","followers_url":"https://api.github.com/users/neveldo/followers","following_url":"https://api.github.com/users/neveldo/following{/other_user}","gists_url":"https://api.github.com/users/neveldo/gists{/gist_id}","starred_url":"https://api.github.com/users/neveldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neveldo/subscriptions","organizations_url":"https://api.github.com/users/neveldo/orgs","repos_url":"https://api.github.com/users/neveldo/repos","events_url":"https://api.github.com/users/neveldo/events{/privacy}","received_events_url":"https://api.github.com/users/neveldo/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T09:35:49Z","updated_at":"2015-11-09T09:35:49Z","body":"Thank for the update ! :-)"}}