Michael,
You're welcome - this trip down message lane has started me to thinking
about how I might be able to use it in my own app. Good goin'!
Glad I could help,
Gene
On Thu, 2009-06-11 at 00:29 +0200, Michael Helwig wrote:
> Hello again,
>
> thanks for your help, Gene. No, fixing the ty
Hello again,
thanks for your help, Gene. No, fixing the typo did not solve the
problem. But there was second typo (a ";" at the end of the line of the
if-statement) which _did_ solve the problem. Thanks!
Michael
Gene Amtower schrieb:
> So, did fixing the typo fix the problem? You didn't say,
So, did fixing the typo fix the problem? You didn't say, but I suspect
that might affect things negatively! ;-)
On Thu, 2009-06-11 at 00:04 +0200, Michael Helwig wrote:
> Sorry, there is a typo in the source. It should read:
>
> "qx.event.message.Bus.unsubscribe("CONFIG LOADED",this.buildGUI,t
Well, I'm no message bus expert myself, but I see that the
checkSubscription method also calls for 3 parameters. I wonder if the
comment about not including the function name and context in the method
means using null parameters instead of no parameter at all.
I don't know if that will make a dif
Sorry, there is a typo in the source. It should read:
"qx.event.message.Bus.unsubscribe("CONFIG LOADED",this.buildGUI,this);"
instead of
"qx.event.message.Bus.unsubscribe("CONFIG_LOADED",this.buildGUI,this);"
Greets,
Michael
Michael Helwig schrieb:
> Hi Gene,
>
> thanks, you are right, this at
Hi Gene,
thanks, you are right, this at least works in the Playground. But I'm
still having problems in my actual code. My Application.js contains in
its members section:
[CODE]
members : {
buildGUI : function () {
if(hbtables.Application.messageBus.checkSubscription("CONFIG LOADED"));
Michael,
In my API docs, it lists 3 parameters for the Bus.subscribe and
Bus.unsubscribe methods...
subscribe(String message, Function subscriber, Object context)
unsubscribe(String message, Function subscriber, Object context)
where the 3rd parameter is probably going to be "this" and appears t
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();