tritech / node-icalendar

iCalendar parser and generator for Node.js
MIT License
233 stars 50 forks source link

VEvent setters adding redundant copies of a given property. #32

Open jkndrkn opened 9 years ago

jkndrkn commented 9 years ago

If I create an event and use VEvent.setSummary() and then use it again, two SUMMARY properties end up getting added to the event. This is because they use CalendarObject.addProperty().

Shouldn't the VEvent setters use CalendarObject.setProperty() instead of CalendarObject.addProperty()?