Catch some edge case.
authorJan Schneider <jan@horde.org>
Fri, 26 Feb 2010 23:37:59 +0000 (00:37 +0100)
committerJan Schneider <jan@horde.org>
Mon, 1 Mar 2010 10:48:20 +0000 (11:48 +0100)
kronolith/js/kronolith.js

index f9b8b27..87ac960 100644 (file)
@@ -2334,6 +2334,12 @@ KronolithCore = {
 
         var cal = calendar.join('|');
         $H(events).each(function(date) {
+            // We might not have a cache for this date if the event lasts
+            // longer than the current view
+            if (!calHash.get(date.key)) {
+                return;
+            }
+
             // Store calendar string and other useful information in event
             // objects.
             $H(date.value).each(function(event) {