[Tickets #5604] Re: ListMessages endless loop

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Aug 7 20:06:01 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5604
-----------------------------------------------------------------------
 Ticket             | 5604
 Updated By         | Michael Slusarz <slusarz at horde.org>
 Summary            | ListMessages endless loop
 Queue              | DIMP
 Version            | 1.0-ALPHA
 Type               | Bug
 State              | Feedback
 Priority           | 3. High
 Owners             | 
-----------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2007-08-07 13:06) wrote:

> We need to cast it to an object, otherwise the JSON would probably 
> look like this:
>
> [1, 2, 3]
>
> instead of:
>
> {'1': 1, '2': 2, '3': 3}

This is precisely the reason.  In javascript land, we are accessing the
array via the message index (our message indices just happen to look like
integers), which is a string value, rather than an integer value because
the latter would indicate the position in the JS array.



More information about the bugs mailing list