Hi Seldaiendil,

On 24-8-2011 18:04, Seldaiendil D. Flourite wrote:
> I found this terrible for programming! isn't there another way to just 
> add a validation to an inherited property? Why I can't use
>
> properties: {
>   value: {
>     refine: true,
>     validate: function() { ... }
>   }
> }
>

You can! Validation is a feature of properties. Have you seen the manual 
pages about checking [1] and validation [2] ?

Both are explained thoroughly in the manual, but in short:
- check only applies to the source version, but will not be included in 
the build (for performance reasons)
- validate applies to both source and build

Depending on your needs, you should use one of those. :)

[1] 
http://manual.qooxdoo.org/current/pages/core/defining_properties.html#checking-incoming-values
[2] 
http://manual.qooxdoo.org/current/pages/core/defining_properties.html#validation-of-incoming-values

Regards,
Marc

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to