I'm playing around with the message bus classes and have noticed an error
when trying to retrieve the sender property from a Message object.

This is the error....
Error: Property sender of an instance of qx.event.message.Message is not
(yet) ready!

When searching the code - it's coming directly from the qx.core.Property
class inside executeOptimizedGetter

Any pointers - what could be causing this?

See here for an example ....
http://demo.qooxdoo.org/devel/playground/index.html#%7B%22code%22%3A%20%22var%2520messageMonitor%2520%253D%2520function%28msg%29%250A%257B%250A%2520%2520%2520%2520this.debug%28%2522messageMonitor%2520here%2522%29%253B%250A%2520%2520%2520%2520try%250A%2520%2520%2520%2520%257B%250A%2520%2520%2520%2520%2520%2520qx.dev.Debug.debugObject%28msg.getData%28%29%252C%2520%27data%27%29%253B%250A%2520%2520%2520%2520%2520%2520qx.dev.Debug.debugObject%28msg.getName%28%29%252C%2520%27name%27%29%253B%250A%2520%2520%2520%2520%2520%2520qx.dev.Debug.debugObject%28msg.getSender%28%29.classname%252C%2520%27sender%2520class%27%29%253B%250A%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520catch%28e%29%2520%257B%2520this.error%28e%29%2520%257D%250A%257D%253B%250A%250Aqx.event.message.Bus.subscribe%28%2522some.message%2522%252C%2520messageMonitor%252C%2520this%29%253B%250A%250Avar%2520senderFunc%2520%253D%2520function%28%29%250A%257B%250A%2520%2520qx.event.Timer.once%28function%28e%29%250A%2520%2520%257B%250A%2520%2520%2520%2520qx.event.message.Bus.getInstance%28%29.dispatch%28new%2520qx.event.message.Message%28%2522some.message%2522%252C%2520%257Bdata%2520%253A%2520%2522blahh%2522%257D%29%29%253B%250A%2520%2520%257D%252C%2520this%252C%25201500%29%253B%250A%257D%253B%250A%250AsenderFunc%28%29%253B%22%7D
-- 
View this message in context: 
http://old.nabble.com/Message-Bus---error-in-sender-property-of-qx.event.message.Message-tp26369142p26369142.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to