Hi.
How do I do something like this (just an example) ...
[1,2,3].each(function(val){return val * val;});
such that the result is ...
[1,4,9]
It seems each() is returning the original value and not the calculation.
The full code is ...
$$('#cbGridContainer label').invoke('getLayout').invoke('get',
'left').uniq().each(function(val){return val = val -
i_ContainerLeft;}).join(',')
Alternatively, could the getLayout() method be extended to include
leftParentOffset and topParentOffset? Which is what I'm calculating.
Regards,
Richard.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.