aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ical.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-09-06 10:26:48 -0700
committerJames Lal <james@lightsofapollo.com>2012-09-06 10:26:48 -0700
commit459e5b14f1868960e60c8fc358103cd6fbbaed7f (patch)
treef9661b7597e11c2aaf610554949556e2b884e0fa /lib/ical.js
parent502b08e4d9662c633bffdeb2556630c717142e43 (diff)
downloadjsCalDAV-459e5b14f1868960e60c8fc358103cd6fbbaed7f.tar.gz
use strict fixes
Diffstat (limited to 'lib/ical.js')
-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);