Matthew Gregory wrote:
> That's strange, you e.getData() should return a boolean not an object. 
> Can you copy and paste your code please and we'll have a look.
>   
I did this
> this.fireDataEvent("changeReadOnly", {value: value, old: old}); 
instead of
> this.fireDataEvent("changeReadOnly", value);

Now, I get an object with value and old set to the corresponding values 
and it works fine now.

Using the second syntax doesn't give the old value always and gives the 
new value only if the readonly is true.

My class is;

> qx.Class.define("NewTextArea",
> {
>   extend : qx.ui.form.TextArea,
>   events :
>    {
>      "changeReadOnly" : "qx.event.type.Data"
>    },
>    members :
>    {
>      _applyReadOnly : function(value, old)
>      {
>        this.base(arguments, value, old);
>        this.debug("Apply readonly value:" + value + " old:" + old + " 
> ...");
>        this.fireDataEvent("changeReadOnly", {value: value, old: old});
>      }
>    }
> });

cheers,
skar.

-- 
--
The life so short, the craft so long to learn. 


------------------------------------------------------------------------------
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