damiengarbarino/dojo-calendar — Issue #8: when a calendar item is created and then updated (via the store), the item is duplicated on the calendar
Author: matt-dns
Created: 2012-03-08 01:36:22+00:00
State: open

I've created a testcase for this issue. In the testcase, I have one event that is pre-defined in the store ("Item #1"). Once the page is loaded, the dojo.ready() function updates Item #2 (with a new summary and start/end time), and then creates a new item ("Item #2"), and then updates that item (with a new summary and start/end time). You'll see that the first item updates fine, but the second item get duplicated. What's interesting, though, is that if you look at calendar_store._arrayOfAllItems after the page is loaded, there's only two items in the store.. so they're just getting duplicated on the calendar, the store itself is working fine.

I tried to track down this bug to fix it myself but couldn't seem to find the source of it.

```

```