Download & Extend

Advanced_forum.js throwing error in IE-8

Project:Advanced Forum
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The advanced_forum.js script is throwing and "Object doesn't support this property or method" (line 14, character 11). Here is the offending code:

      if (pages) {
        for (x in pages) {
          tmp = pages[x].split('=');
          Drupal.advanced_forum.collapsed_page[tmp[0]] = tmp[1].split(',');
        }
      }

I'm no javascript monkey, but if I skip over this if statement in the debugger, the page continues to load correctly ... and I know that can't be a good thing.

I am running 7.x-2.x-dev from Aug, 12, 2012, if that helps.

Help!!! (and thanks in advance)

Comments

#1

Status:active» needs review

try to replace above code with:

      if (pages) {
        for (var x = 0; x < pages.length; x++) {
          var tmp = pages[x].split('=');
          Drupal.advanced_forum.collapsed_page[tmp[0]] = tmp[1].split(',');
        }
      }

#2

Priority:major» normal
Status:needs review» fixed

This is fixed already.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here