aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ical.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ical.js b/lib/ical.js
index 5c7d740..b4f309e 100644
--- a/lib/ical.js
+++ b/lib/ical.js
@@ -31,7 +31,7 @@ ICAL.helpers = {
dumpn: function() {
if (!ICAL.debug) {
- return;
+ return null;
}
if (typeof (console) !== 'undefined' && 'log' in console) {
@@ -2529,7 +2529,7 @@ ICAL.design = {
if (!aComponent.hasProperty("DTSTART") ||
!aComponent.hasProperty("TZOFFSETTO") ||
!aComponent.hasProperty("TZOFFSETFROM")) {
- return;
+ return null;
}
var dtstart = aComponent.getFirstProperty("DTSTART").getFirstValue();
@@ -2663,6 +2663,8 @@ ICAL.design = {
utc_offset = to_zone.utc_offset(tt);
tt.adjust(0, 0, 0, utc_offset);
+
+ return null;
};
ICAL.icaltimezone.fromData = function icaltimezone_fromData(aData) {
@@ -3558,7 +3560,10 @@ ICAL.design = {
ICAL.helpers.dumpn("EICALPROP: " + this.toString() + "//" + e);
ICAL.helpers.dumpn(e.stack);
}
+
+ return null;
},
+
fromIcalProperty: function fromIcalProperty(aProp) {
var propval = aProp.getFirstValue();
this.fromData(propval);