From 459e5b14f1868960e60c8fc358103cd6fbbaed7f Mon Sep 17 00:00:00 2001 From: James Lal Date: Thu, 6 Sep 2012 10:26:48 -0700 Subject: use strict fixes --- lib/ical.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') 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); -- cgit