fix typo. make this actually work.

This commit is contained in:
mvl%exedo.nl 2004-12-15 19:19:49 +00:00
parent 4a1e9a1e03
commit e511e491c1
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ calEvent.prototype = {
set icalComponent(event) {
if (this.mImmutable)
throw Components.results.NS_ERROR_FAILURE;
if (event.componentType != "VEVENT"); {
if (event.componentType != "VEVENT") {
event = event.getFirstSubcomponent("VEVENT");
if (!event)

View File

@ -152,7 +152,7 @@ calEvent.prototype = {
set icalComponent(event) {
if (this.mImmutable)
throw Components.results.NS_ERROR_FAILURE;
if (event.componentType != "VEVENT"); {
if (event.componentType != "VEVENT") {
event = event.getFirstSubcomponent("VEVENT");
if (!event)
// throw Components.results.NS_ERROR_CALENDAR_WRONG_COMPONENT_TYPE;