I have an xmpp object that try to join a room and if the room does not
exists (or it's simply busy) it asks the server to create a new one

xmpp.addOnceEvents({
        'presence_error': new Request.JSON({
               ... request the server a new room
               ... join the new room
               ... remove both presence_error and point_room_joined events
         }).post,
        'point_room_joined': $empty // i have no real commands to execute
here just remove both events
},true).join_point_room(room_name,room_password);

this way i can remove both the events if one of them occurs

if you have a nicer solution it'll be appreciated!

-Vito-





--
-----------
Tafuni Vito
[email protected]
---------------------------------------------
"Verba volant, scripta manent... data corrupted"


2010/10/11 Tim Wienk <[email protected]>

> You won't be able to remove only the :once events in 1.3, maybe it's a
> feature to discuss for a future release. I think it's not very
> necessary though, since you can remove specific functions by just
> passing the function reference to removeEvent.
>

Reply via email to