{"action":"closed","issue":{"url":"https://api.github.com/repos/PitPik/colorPicker/issues/37","repository_url":"https://api.github.com/repos/PitPik/colorPicker","labels_url":"https://api.github.com/repos/PitPik/colorPicker/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/PitPik/colorPicker/issues/37/comments","events_url":"https://api.github.com/repos/PitPik/colorPicker/issues/37/events","html_url":"https://github.com/PitPik/colorPicker/issues/37","id":134539399,"number":37,"title":"jqColor repeat call renderCallback","user":{"login":"huyinghuan","id":3005433,"avatar_url":"https://avatars.githubusercontent.com/u/3005433?v=3","gravatar_id":"","url":"https://api.github.com/users/huyinghuan","html_url":"https://github.com/huyinghuan","followers_url":"https://api.github.com/users/huyinghuan/followers","following_url":"https://api.github.com/users/huyinghuan/following{/other_user}","gists_url":"https://api.github.com/users/huyinghuan/gists{/gist_id}","starred_url":"https://api.github.com/users/huyinghuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huyinghuan/subscriptions","organizations_url":"https://api.github.com/users/huyinghuan/orgs","repos_url":"https://api.github.com/users/huyinghuan/repos","events_url":"https://api.github.com/users/huyinghuan/events{/privacy}","received_events_url":"https://api.github.com/users/huyinghuan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T10:29:01Z","updated_at":"2016-05-18T13:31:32Z","closed_at":"2016-05-18T13:31:32Z","body":"i console.log in  ```renderCallBack``` it will repeate output when click one time  in color picker area.\r\n\r\nfor prevent repeart call ```renderCallback```. I write a bad code:\r\n```\r\n.....\r\n\t$.fn.extend({\r\n\t\tcolorPicker: function(config) {\r\n\t\t\tvar timestamp = new Date().getTime();\r\n\t\t\tvar renderCallback = function(colors, mode) {\r\n\t\t\t\t\tif(Date.now() - timestamp < 500){\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\ttimestamp = Date.now();\r\n\t\t\t\t\t}\r\n.....\r\n```\r\nIs there any good way to solve it?"}}