On Fri, Mar 26, 2010 at 11:40, Peter Schneider <[email protected]>wrote:
> Thanks a million Derrell!
>
> Nice trick with the 'overwriteable' check-method! It solves _both_ of my
> problems! *Respect* !! ;) It can be so easy if you know how
>
You're welcome.
Note that I had no error checking in my code. It's possible, for example, to
set the 'possibleLevels' property to a set of values that does not include
the current value of the 'level' property. Setting 'possibleLevels' should
do _something_ appropriate (although it's not entirely clear _what_ it
should do) if 'level' is currently "tristate" and 'possibleLevels' is set to
[ "high", "low" ]. Maybe set 'level' to the first element of the new array?
Maybe throw an error? It's a bit of a race condition, in that you can't
change 'level' to a value that's not currently in 'possibleLevels', yet you
can't change 'possibleLevels' if 'level' is not in the new array...
Derrell
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel