{"action":"created","issue":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2904","labels_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2904/labels{/name}","comments_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2904/comments","events_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2904/events","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2904","id":112062363,"number":2904,"title":"renderEvent + event.dow + prev/next week/month/year multiplies events all over the place","user":{"login":"sebastienratez","id":6885597,"avatar_url":"https://avatars.githubusercontent.com/u/6885597?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienratez","html_url":"https://github.com/sebastienratez","followers_url":"https://api.github.com/users/sebastienratez/followers","following_url":"https://api.github.com/users/sebastienratez/following{/other_user}","gists_url":"https://api.github.com/users/sebastienratez/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienratez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienratez/subscriptions","organizations_url":"https://api.github.com/users/sebastienratez/orgs","repos_url":"https://api.github.com/users/sebastienratez/repos","events_url":"https://api.github.com/users/sebastienratez/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienratez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-19T02:55:57Z","updated_at":"2015-11-08T23:17:57Z","closed_at":"2015-10-26T05:55:29Z","body":"Please check:\r\nhttp://jsbin.com/xisubawuli/edit?js,output\r\n\r\nThen change week/month/year, then come back. You'll notice events are multiplied.\r\n\r\nThis does not happen if you provide an event list directly during initialization phase."},"comment":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/comments/154885861","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2904#issuecomment-154885861","issue_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2904","id":154885861,"user":{"login":"sebastienratez","id":6885597,"avatar_url":"https://avatars.githubusercontent.com/u/6885597?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienratez","html_url":"https://github.com/sebastienratez","followers_url":"https://api.github.com/users/sebastienratez/followers","following_url":"https://api.github.com/users/sebastienratez/following{/other_user}","gists_url":"https://api.github.com/users/sebastienratez/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienratez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienratez/subscriptions","organizations_url":"https://api.github.com/users/sebastienratez/orgs","repos_url":"https://api.github.com/users/sebastienratez/repos","events_url":"https://api.github.com/users/sebastienratez/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienratez/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T23:17:57Z","updated_at":"2015-11-08T23:17:57Z","body":"For now, I avoid a problem with this little hack:\r\n\r\nvar m_arrRenderedEventsHashes = [];\r\n\r\n\tvar m_arrRenderedEventsHashes = [];\r\n\t\r\n\t$(\"#calendar\").fullCalendar({\r\n\t\tviewRender: function (view) {\r\n\t\t\tm_arrRenderedEventsHashes = [];\r\n\t\t}\r\n\t\teventRender: function (e,element,view) {\r\n\t\t\tvar eventHash = sha2((isset(e.id) ? e.id : e._id) + e.start);\r\n\t\t\tif (eventHash in m_arrRenderedEventsHashes) return false;\r\n\t\t\tm_arrRenderedEventsHashes[eventHash] = true;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\r\nI store a hash for each rendered event. If the hash exists already, I don't render it. That's probably not very optimized but it works so far."}}