add:      if (event.duration) { this.endDate = this.startDate.clone(); this.endDate.addDuration(event.duration); }  
context:     set icalComponent(event) {        this.modify();        if (event.componentType != "VEVENT") {            event = event.getFirstSubcomponent("VEVENT");            if (!event)                throw Components.results.NS_ERROR_INVALID_ARG;        }        this.setItemBaseFromICS(event);        this.mapPropsFromICS(event, this.icsEventPropMap);        this.importUnpromotedProperties(event, this.eventPromotedProps);        // Importing didn't really change anything        this.mDirty = false;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/07892e1dac3c8bf41d2d970b6436bcff4df5c8d4/calEvent.js/clean/calendar/base/src/calEvent.js