Roster and JavaScript

I’‘m writing a client that uses XIFF for communication and JavaScript/HTML for displaying the messages, roster, etc, and I’‘ve found that Google’‘s GTalk server set “unavailable” status sending a presence, that XIFF catches and triggers an event and I handle it. But Wildfire’‘s don’'t do that and XIFF updates the roster without triggering an event.

Arrays can’'t be ‘‘watched’’ (watch(“roster”, rosterChanged);). How can I proceed?

myRoster.addEventListener(“modelChanged”, eventHandler);

this way you can follow changes in the roster. hope it helps

Didn’'t work, but thanks astrocrack.

I’'ve put the JS calls on a new class based on Roster to do the job.