{"action":"created","comment":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/comments/47555400","id":47555400,"diff_hunk":"@@ -219,6 +219,11 @@\n                 self.onUpdateEvent(e, opt);\n             });\n \n+            // Attach showElementsInRange event\n+            self.$container.on(\"showElementsInRange.\" + pluginName, function (e, ranges) {","path":"js/jquery.mapael.js","position":null,"original_position":5,"commit_id":"b7ae4baeaebfb5abd00b11d66d9220be197aaeb2","original_commit_id":"0a490804a6c4b2d1a1c5124474d6eea997ad0bda","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},"body":"Right! It was from an earlier version where I only passed a ranged array. I forgot to update this part after extending the event.","created_at":"2015-12-14T20:48:32Z","updated_at":"2015-12-14T20:48:32Z","html_url":"https://github.com/neveldo/jQuery-Mapael/pull/165#discussion_r47555400","pull_request_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165","_links":{"self":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/comments/47555400"},"html":{"href":"https://github.com/neveldo/jQuery-Mapael/pull/165#discussion_r47555400"},"pull_request":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165"}}},"pull_request":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165","id":53479689,"html_url":"https://github.com/neveldo/jQuery-Mapael/pull/165","diff_url":"https://github.com/neveldo/jQuery-Mapael/pull/165.diff","patch_url":"https://github.com/neveldo/jQuery-Mapael/pull/165.patch","issue_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/165","number":165,"state":"open","locked":false,"title":"Update range display","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},"body":"Implements #110 second option!\r\n\r\nUsage:\r\n```javascript\r\nopt = {\r\n\thiddenOpacity: 0.3,\t\t\t\t\t// Opacity to use when hidding element\r\n\tanimDuration: 200,\t\t\t\t\t// Animation duration for showing/hiding element\r\n\tafterShowRange: function() {},\t\t// User callback\r\n\tranges: {\t\t\t\t\t\t\t// The ranges\r\n\t\tplot: {\r\n\t\t\t0: {                        // valueIndex\r\n\t\t\t\tmin: 1000,\r\n\t\t\t\tmax: 1200\r\n\t\t\t},\r\n\t\t\t1: {                        // valueIndex\r\n\t\t\t\tmin: 10,\r\n\t\t\t\tmax: 12\r\n\t\t\t}\r\n\t\t}, \r\n\t\tarea : {\r\n\t\t\t{min: 10, max: 20}    // No valueIndex, only an object, use 0 as valueIndex (easy case)\r\n\t\t}\r\n\t}\r\n};\r\n$(\".mapcontainer\").trigger(\"showElementsInRange\", [opt]);\r\n```\r\n\r\nProvided are 2 advanced examples using NoUISlider (http://refreshless.com/nouislider).\r\n\r\nAs a nice effect, I factorized some function using the new `setElementOpacity()` function.","created_at":"2015-12-12T16:29:50Z","updated_at":"2015-12-14T20:48:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e38bca7786dee5e7422262e6817ba66c7d52d88e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165/commits","review_comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165/comments","review_comment_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/165/comments","statuses_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/statuses/b7ae4baeaebfb5abd00b11d66d9220be197aaeb2","head":{"label":"Indigo744:update-range-display","ref":"update-range-display","sha":"b7ae4baeaebfb5abd00b11d66d9220be197aaeb2","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},"repo":{"id":44972407,"name":"jQuery-Mapael","full_name":"Indigo744/jQuery-Mapael","owner":{"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},"private":false,"html_url":"https://github.com/Indigo744/jQuery-Mapael","description":"jQuery plugin based on raphael.js that allows you to display dynamic vector maps","fork":true,"url":"https://api.github.com/repos/Indigo744/jQuery-Mapael","forks_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/forks","keys_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/teams","hooks_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/hooks","issue_events_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/issues/events{/number}","events_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/events","assignees_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/assignees{/user}","branches_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/branches{/branch}","tags_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/tags","blobs_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/git/refs{/sha}","trees_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/statuses/{sha}","languages_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/languages","stargazers_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/stargazers","contributors_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/contributors","subscribers_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/subscribers","subscription_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/subscription","commits_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/commits{/sha}","git_commits_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/git/commits{/sha}","comments_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/comments{/number}","issue_comment_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/issues/comments{/number}","contents_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/contents/{+path}","compare_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/merges","archive_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/downloads","issues_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/issues{/number}","pulls_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/pulls{/number}","milestones_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/milestones{/number}","notifications_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/labels{/name}","releases_url":"https://api.github.com/repos/Indigo744/jQuery-Mapael/releases{/id}","created_at":"2015-10-26T14:09:07Z","updated_at":"2015-10-26T14:09:08Z","pushed_at":"2015-12-14T20:47:55Z","git_url":"git://github.com/Indigo744/jQuery-Mapael.git","ssh_url":"git@github.com:Indigo744/jQuery-Mapael.git","clone_url":"https://github.com/Indigo744/jQuery-Mapael.git","svn_url":"https://github.com/Indigo744/jQuery-Mapael","homepage":null,"size":1382,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neveldo:master","ref":"master","sha":"70356be44825eb896672eea56ae4ebffa76dab10","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},"repo":{"id":10887157,"name":"jQuery-Mapael","full_name":"neveldo/jQuery-Mapael","owner":{"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},"private":false,"html_url":"https://github.com/neveldo/jQuery-Mapael","description":"jQuery plugin based on raphael.js that allows you to display dynamic vector maps","fork":false,"url":"https://api.github.com/repos/neveldo/jQuery-Mapael","forks_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/forks","keys_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/teams","hooks_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/hooks","issue_events_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/events{/number}","events_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/events","assignees_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/assignees{/user}","branches_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/branches{/branch}","tags_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/tags","blobs_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/git/refs{/sha}","trees_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/statuses/{sha}","languages_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/languages","stargazers_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/stargazers","contributors_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/contributors","subscribers_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/subscribers","subscription_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/subscription","commits_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/commits{/sha}","git_commits_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/git/commits{/sha}","comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/comments{/number}","issue_comment_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/comments{/number}","contents_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/contents/{+path}","compare_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/merges","archive_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/downloads","issues_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues{/number}","pulls_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls{/number}","milestones_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/milestones{/number}","notifications_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/labels{/name}","releases_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/releases{/id}","created_at":"2013-06-23T15:45:49Z","updated_at":"2015-12-11T14:57:47Z","pushed_at":"2015-12-14T20:47:55Z","git_url":"git://github.com/neveldo/jQuery-Mapael.git","ssh_url":"git@github.com:neveldo/jQuery-Mapael.git","clone_url":"https://github.com/neveldo/jQuery-Mapael.git","svn_url":"https://github.com/neveldo/jQuery-Mapael","homepage":null,"size":1215,"stargazers_count":661,"watchers_count":661,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":109,"mirror_url":null,"open_issues_count":12,"forks":109,"open_issues":12,"watchers":661,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165"},"html":{"href":"https://github.com/neveldo/jQuery-Mapael/pull/165"},"issue":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/165"},"comments":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/165/comments"},"review_comments":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165/comments"},"review_comment":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/pulls/165/commits"},"statuses":{"href":"https://api.github.com/repos/neveldo/jQuery-Mapael/statuses/b7ae4baeaebfb5abd00b11d66d9220be197aaeb2"}}}}