summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-19 11:24:46 +0100
committerAndrew Dolgov <[email protected]>2008-05-19 11:24:46 +0100
commit3a40e8a2eda381bd33c2b52869ba50826b614529 (patch)
treeec0b82a6cb845851611761d80efa5f554a524a4b /functions.js
parent673c9946741ab7fcc9bcee02c25c26d295e93693 (diff)
add placeholder mouse trap code, misc fixes
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 1e13d8e0e..997bcb13b 100644
--- a/functions.js
+++ b/functions.js
@@ -262,6 +262,8 @@ function getVisibleUnreadHeadlines() {
var rows = new Array();
+ if (!content) return rows;
+
for (i = 0; i < content.rows.length; i++) {
var row_id = content.rows[i].id.replace("RROW-", "");
if (row_id.length > 0 && content.rows[i].className.match("Unread")) {
@@ -277,6 +279,8 @@ function getVisibleHeadlineIds() {
var rows = new Array();
+ if (!content) return rows;
+
for (i = 0; i < content.rows.length; i++) {
var row_id = content.rows[i].id.replace("RROW-", "");
if (row_id.length > 0) {