On 09/21/2010 12:33 PM, Fritz Zaucker wrote:
> Thanks for updating the API. Actually, I had problems finding that topic in
> the API. Can you tell me, where to look?

The class documentation of qx.core.Property:
http://demo.qooxdoo.org/1.2/apiviewer/#qx.core.Property

> And perhaps it might be useful to
> link it in the manual?

Sure, can you open a bug for it?! Maybe we thought that to be too obvious.

T.

> 
> Cheers,
> Fritz
> 
> On Tue, 21 Sep 2010, thron7 wrote:
> 
>> You're right. I left the manual as it was, as it should focus on the
>> important aspects. But the API doc (which needs to be complete) now has
>> the third param.
>>
>> Thanks,
>> T.
>>
>> On 09/21/2010 07:59 AM, Fritz Zaucker wrote:
>>> Hi,
>>>
>>> looking at the source in framework/source/class/qx/core/Property.js it seems
>>> that the apply method for properties is actually called with (at least) 3
>>> arguments, namely value, old, and name (of the property), allowing the
>>> following:
>>>
>>>          __apply: function(value, old, name) {
>>>              this.debug('__apply(): name='+name+', 
>>> old='+old+',value='+value);
>>>          }
>>>
>>> whereas the documentation in
>>> http://manual.qooxdoo.org/1.2.x/pages/core/defining_properties.html
>>> only shows the first two (value and old).
>>>
>>> Is this an oversight in the documentation or is there any reason why the
>>> name parameter should not be used? I actually like it a lot, as it allows me
>>> to use the same apply method in various properties and do whatever is needed
>>> depending on the name parameter. In my case this gives a lot less code, as
>>> my apply method actually would look like that:
>>>
>>>          __apply: function(value, old, name) {
>>>              this.debug('__apply(): name='+name+', 
>>> old='+old+',value='+value);
>>>         ...
>>>         rpc.callAsync(rpcCallback, 'storeProperty',
>>>                            {name: name, old: old, value: value});
>>>          }
>>>
>>> Cheers,
>>> Fritz
>>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
> 

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to