Hello,
sub wrote:
>
> 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!
>
Since you never set the sender property, it cannot be ready! ;-)
Unlike an event, which has a target, the message object cannot know what the
sender is, you need to set it manually. It's an optional property that you
need only in rare cases.
var m = new qx.event.message.Message("name", "data");
m.setSender(mySenderObject);
qx.event.message.Bus.dispatch(m);
--
View this message in context:
http://n2.nabble.com/Message-Bus-error-in-sender-property-of-qx-event-message-Message-tp4011066p4011197.html
Sent from the qooxdoo 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