Closed mattgallivan closed 4 years ago
Hi, I'm so sorry for not replying sooner.
Certainly, as you said, it seems necessary to modify the ID generation process when adding an event. I will investigate and fix as soon as possible, so please be patient.
Thanks!
Dear ka215, great work! By cons I encounter the same problem I need to be able to inject my own ID or have the possibility of injecting an onclick = myFunction () without that I will not be able to go further. thanks in advance
Fixed this issue in version 2.1.0.
Since ver.2.1.0, the events with duplicate IDs cannot be added and an error will occur. And if you specify a unique ID, it will be added with that event ID. An ID is automatically generated as in the past when an event with an unspecified ID is added.
Thanks for the library!
I'm running into an issue using 'addEvent' with custom eventIds. It seems that the library generates its own IDs even if I do supply my own, which makes it difficult to use the relations to connect them.
The code in question
Note that it runs through all the event IDs, adding them to the _ids variable, and then it uses that list to generate an event ID that is one higher than the maximum.
So if I had two 'addEvents', with custom IDs 1 and 2 respectively, the system would really start the IDs at 3 and 4.
I think there should be some sort of check for a custom event ID before relying on system generation.
Thanks!