I have filed a bug with Mochikit: <http://trac.mochikit.com/ticket/255>.
The script dies when the parent element is null in getElementsByTagAndClassName('span', 'foldable', maincontent). I'm adding a test and will exist early if the element is missing.
I have filed a bug with Mochikit: <http:// trac.mochikit. com/ticket/ 255>.
The script dies when the parent element is null in getElementsByTa gAndClassName( 'span', 'foldable', maincontent). I'm adding a test and will exist early if the element is missing.