JS errors on SVN 271

Charles McNulty charles at charlesmcnulty.com
Thu Jul 6 22:13:38 CEST 2006


I don't think it's a cache issue.  I'm experiencing it too.  Rich, can
you explain a little what the code is in clear_message_list_header
function?  It looks weird to me.

 	1580	  this.clear_message_list_header = function()
 	1581	    {
 	1582	    var table = this.gui_objects.messagelist;
 	1583	
 	1584	    var colgroup = document.createElement('COLGROUP');
 	1585	    table.removeChild(table.colgroup);
 	1586	    table.insertBefore(colgroup, table.thead);
 	1587	
 	1588	    var thead = document.createElement('THEAD');
 	1589	    table.removeChild(table.thead);
 	1590	    table.insertBefore(thead, table.tBodies[0]);
 	1591	    };

First it creates an element, then it attempts to remove table.colgroup,
which I don't think exists, then it does an insertBefore?  Perhaps some
of that is debugging code?  Even if it were working, what is the intent
of this code?  Does it relate to this note: 'Added ability to sort
messages by "Size"'?

-Charles

richs at whidbey.net wrote:
> On Jul 1, 2006, at 3:02 PM, Martin Marques wrote:
> 
>>
>> On Sat, 1 Jul 2006 18:40:01 -0300, Martin Marques
>> <martin at bugs.unl.edu.ar> wrote:
>>>
>>> I'm having trouble with the last SVN update. Basically new messages
>>> don't
>>> get in the div frame as I eliminate others, and sometimes the frame gets
>>> totally empty.
>>>
>>> I also got a wholñe bunch of JS errors on the firefox javascript
>>> console:
>>>
>>> Error: this.list_rows[id] has no properties
>>> Source File: https://bugs.unl.edu.ar/mail/program/js/app.js
>>> Line: 268
>>>
>>>
>>> Error: uncaught exception: [Exception... "Component returned failure
>>> code:
>>> 0x80004003 (NS_ERROR_INVALID_POINTER)
>>> [nsIDOMHTMLTableElement.removeChild]"
>>>  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS
>>> frame ::
>>> https://bugs.unl.edu.ar/mail/program/js/app.js :: anonymous :: line
>>> 1587"
>>> data: no]
>>
>> Just found this one too:
>>
>> Error: this.set_message_coltypes is not a function
>> Source File: https://bugs.unl.edu.ar/mail/program/js/app.js
>> Line: 3303
> 
> Try flushing your cache?  You may have an app.js cached from an older
> SVN version,
> 
> Rich
> 
> 
> 






More information about the Dev mailing list