Hi,

how can I unsubscribe a function from a message bus 
(qx.event.message.Bus)?

Calling messageBus.unsubscribe("MESSAGE_TEXT") yields an error 
("sub[msgName] is null")
Running the following in the Playground app also yields an error:

[CODE]
var messageBus = qx.event.message.Bus.getInstance();
var message = new qx.event.message.Message("TEST");

var myfunction = function() {
   alert("Here I am");
}

messageBus.subscribe("TEST", myfunction);
messageBus.unsubscribe("TEST");
[/CODE]

Error:
playground.Application[p]: TypeError: k[l] is null

The combinations
[CODE]
messageBus.unsubscribe("TEST", myfunction);
//OR
messageBus.unsubscribe(myfunction);
[/CODE]
have no effect, the function gets called if the message is dispatched 
anyway.

Am I doing something wrong or is this a bug?

Greetings,

Michael


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to