From 09c33e14ee135e80cae6ce5ef6ae2b93acf26e3d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sat, 27 Feb 2010 00:37:59 +0100 Subject: [PATCH] Catch some edge case. --- kronolith/js/kronolith.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index f9b8b27ce..87ac96015 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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) { -- 2.11.0