unpackVisibleHeadlines: do nothing if not in cdm

This commit is contained in:
Andrew Dolgov 2013-03-25 14:15:22 +04:00
parent 62b1f587ab
commit 4401813325
1 changed files with 2 additions and 0 deletions

View File

@ -1177,6 +1177,8 @@ function postMouseOut(id) {
function unpackVisibleHeadlines() { function unpackVisibleHeadlines() {
try { try {
if (!isCdmMode()) return;
$$("#headlines-frame > div[id*=RROW]").each( $$("#headlines-frame > div[id*=RROW]").each(
function(child) { function(child) {
if (child.offsetTop <= $("headlines-frame").scrollTop + if (child.offsetTop <= $("headlines-frame").scrollTop +