mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
fix typo. make this actually work.
This commit is contained in:
parent
4a1e9a1e03
commit
e511e491c1
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user